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?
The code presented here doesn't show this discrepancy, but sometimes I get stuck when invoking dataframe
in all lower case.
Switching to camel-case (pd.DataFrame()
) cleans up the problem.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments