For the following code:
import pandas as pd
df = pd.DataFrame(np.random.rand(12,2), columns=['Apples', 'Oranges'] )
df['Categories'] = pd.Series(list('AAAABBBBCCCC'))
pd.options.display.mpl_style = 'default'
df.boxplot(by='Categories')
I get the error:
'pandas' object has no attribute 'DataFrame'.
Any ideas on what is happening and how to fix this problem?
pdsomewhere by accident? Or imported something elseas pdafterpandas? If not, were there any errors when you installedpandas? Finally, any chance there are non-printable character in the middle of your code (say, because you edited it in Word instead of a text editor)? - abarnertpd.py, and that you don't have a module calledpd.pysomewhere that you're importing. - Phillip Cloud