May-20-2018, 01:59 PM
(May-20-2018, 01:23 PM)Jack_Sparrow Wrote:--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-52-d254f858d008> in <module>() ----> 1 res = pd.df['quality'].nunique() AttributeError: module 'pandas' has no attribute 'df'Can somebody help?
Well, it does not . Read your code again - why
pd.df
?
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.