Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ax = sns.boxplot(x="platform", y="total_sales", data=since2012)
- plt.ylabel('Суммарные продажи')
- plt.xlabel('Платформа')
- ax = sns.boxplot(y= 'y')
- ax.set_ylim([5, 5])
- ---------------------------------------------------------------------------
- ValueError Traceback (most recent call last)
- <ipython-input-70-822c47e0a7bf> in <module>
- 2 plt.ylabel('Суммарные продажи')
- 3 plt.xlabel('Платформа')
- ----> 4 ax = sns.boxplot(y= 'y')
- 5 ax.set_ylim([5, 5])
- /opt/conda/lib/python3.7/site-packages/seaborn/categorical.py in boxplot(x, y, hue, data, order, hue_order, orient, color, palette, saturation, width, dodge, fliersize, linewidth, whis, notch, ax, **kwargs)
- 2229 plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
- 2230 orient, color, palette, saturation,
- -> 2231 width, dodge, fliersize, linewidth)
- 2232
- 2233 if ax is None:
- /opt/conda/lib/python3.7/site-packages/seaborn/categorical.py in __init__(self, x, y, hue, data, order, hue_order, orient, color, palette, saturation, width, dodge, fliersize, linewidth)
- 444 width, dodge, fliersize, linewidth):
- 445
- --> 446 self.establish_variables(x, y, hue, data, orient, order, hue_order)
- 447 self.establish_colors(color, palette, saturation)
- 448
- /opt/conda/lib/python3.7/site-packages/seaborn/categorical.py in establish_variables(self, x, y, hue, data, orient, order, hue_order, units)
- 153 if isinstance(input, string_types):
- 154 err = "Could not interpret input '{}'".format(input)
- --> 155 raise ValueError(err)
- 156
- 157 # Figure out the plotting orientation
- ValueError: Could not interpret input 'y'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement