Hi,
I’ve been going through the Visualizing Categorical Data - Introduction to Bar Charts URL:
https://www.codecademy.com/paths/data-science/tracks/dscp-summary-statistics/modules/dacp-visualizing-categorical-data/lessons/bar-charts-and-pie-charts-lesson/exercises/intro-bar-charts
I have completed the required code to progress to the next step and it is coming up with an ‘Unknown Density Error’ and will not let me proceed to the next stage.
To rule out my own solution as the cause (You never know?!?) I tried the solution code provided and this again resulted in the error.
I am using the platform on Google Chrome (latest build)
The traceback error is as follows:
Traceback (most recent call last):
File “plot.py”, line 20, in
sns.distplot(heroes_data_cleaned[“Height”])
File “/usr/local/lib/python3.6/dist-packages/seaborn/distributions.py”, line 2619, in distplot
color=hist_color, **hist_kws)
File “/usr/local/lib/python3.6/dist-packages/matplotlib/init.py”, line 1898, in inner
return func(ax, *args, **kwargs)
File “/usr/local/lib/python3.6/dist-packages/matplotlib/axes/_axes.py”, line 6389, in hist
p.update(kwargs)
File “/usr/local/lib/python3.6/dist-packages/matplotlib/artist.py”, line 885, in update
for k, v in props.items()]
File “/usr/local/lib/python3.6/dist-packages/matplotlib/artist.py”, line 885, in
for k, v in props.items()]
File “/usr/local/lib/python3.6/dist-packages/matplotlib/artist.py”, line 878, in _update_property
raise AttributeError(‘Unknown property %s’ % k)
AttributeError: Unknown property density
Thanks,
Martin