Advertisement
Dodma

Untitled

May 4th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. ax = sns.boxplot(x="platform", y="total_sales", data=since2012)
  2. plt.ylabel('Суммарные продажи')
  3. plt.xlabel('Платформа')
  4. ax = sns.boxplot(y= 'y')
  5. ax.set_ylim([5, 5])
  6.  
  7.  
  8. ---------------------------------------------------------------------------
  9. ValueError Traceback (most recent call last)
  10. <ipython-input-70-822c47e0a7bf> in <module>
  11. 2 plt.ylabel('Суммарные продажи')
  12. 3 plt.xlabel('Платформа')
  13. ----> 4 ax = sns.boxplot(y= 'y')
  14. 5 ax.set_ylim([5, 5])
  15.  
  16. /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)
  17. 2229 plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
  18. 2230 orient, color, palette, saturation,
  19. -> 2231 width, dodge, fliersize, linewidth)
  20. 2232
  21. 2233 if ax is None:
  22.  
  23. /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)
  24. 444 width, dodge, fliersize, linewidth):
  25. 445
  26. --> 446 self.establish_variables(x, y, hue, data, orient, order, hue_order)
  27. 447 self.establish_colors(color, palette, saturation)
  28. 448
  29.  
  30. /opt/conda/lib/python3.7/site-packages/seaborn/categorical.py in establish_variables(self, x, y, hue, data, orient, order, hue_order, units)
  31. 153 if isinstance(input, string_types):
  32. 154 err = "Could not interpret input '{}'".format(input)
  33. --> 155 raise ValueError(err)
  34. 156
  35. 157 # Figure out the plotting orientation
  36.  
  37. ValueError: Could not interpret input 'y'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement