Your Training Expert
Your Training Expert

Reputation: 17

PD Read in Jupyter Notebook 3.7

I began a simple project and I cannot get pandas in my Jupyter notebook to read my file as I get an attribute error message:

import pandas as pd  
bank_churn = pd.read.csv('CustomerChurn')

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-15-38cc87a5bfa3> in <module>
----> 1 bank_churn = pd.read.csv('CustomerChurn')

~\Anaconda3\lib\site-packages\pandas\__init__.py in __getattr__(name)
    212 
    213             return Panel
--> 214         raise AttributeError("module 'pandas' has no attribute '{}'".format(name))
    215 
    216 

AttributeError: module 'pandas' has no attribute 'read'

Upvotes: 0

Views: 165

Answers (1)

james hendricks
james hendricks

Reputation: 134

You'll want to use

pd.read_csv(filename)

Upvotes: 2

Related Questions