'module' object has no attribute 'DataFrame'

aerijman

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?

Daniel Klaus

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

'DataFrame' object has no attribute 'sort'

From Java

AttributeError: 'module' object has no attribute 'tests'

From Dev

AttributeError: 'DataFrame' object has no attribute

From Dev

'module' object has no attribute 'GeoSQLCompiler'

From Dev

Mtaplotlib AttributeError: 'module' object has no attribute 'pyplot'

From Dev

AttributeError: 'module' object has no attribute

From Dev

AttributeError: 'module' object has no attribute

From Dev

AttributeError: 'module' object has no attribute 'cache'

From Dev

AttributeError: 'module' object has no attribute 'tk'

From Dev

'module' object has no attribute 'views' django error

From Dev

AttributeError: 'module' object has no attribute

From Dev

AttributeError:'module' object has no attribute 'call' :Python

From Dev

module object has no attribute oauth

From Dev

AttributeError: 'module' object has no attribute 'TestCase'

From Dev

'module' object has no attribute 'Serial'

From Dev

Pylab - 'module' object has no attribute 'Figure'

From Dev

DataFrame object has no attribute 'sample'

From Dev

'module' object has no attribute 'get'?

From Dev

Custom Module - Object Has No Attribute

From Dev

AttributeError: 'module' object has no attribute 'version'

From Dev

module' object has no attribute 'SelectDateWidget'

From Dev

'DataFrame' object has no attribute 'sort'

From Dev

'DataFrame' object has no attribute 'isna'

From Dev

"DataFrame" object has no attribute 'reshape'

From Dev

'module' object has no attribute 'GeoSQLCompiler'

From Dev

'module' object has no attribute 'cut'

From Dev

'module' object has no attribute 'shortcuts'

From Dev

'module' object has no attribute 'get'?

From Dev

'module' object has no attribute 'TK'

Related Related

HotTag

Archive