Home>

I'm learning python
When I read csv, the following error occurred.

Error messageItalic text
-------------------------------------------------- -------------------------
AttributeError Traceback (most recent call last)
<ipython-input-15-3e723084702b>in<module>
---->1 df_population_data = pd.read.csv ('D: /data.csv', encoding ='shift-jis')
~ \ anaconda3 \ lib \ site-packages \ pandas \ __init __.py in __getattr__ (name)
    256 return _SparseArray
    257
->258 raise AttributeError (f "module'pandas' has no attribute'{name}'")
    259
    260
AttributeError: module'pandas' has no attribute'read'
Corresponding source code
import pandas as pd
df_population_data = pd.read.csv ('D: /data.csv', encoding ='shift-jis')
What I tried

module'pandas' has no attribute'read'
I tried to find out how to solve the error, but I'm having trouble finding it.

Supplementary information (FW/tool version, etc.)

Please provide more detailed information here.

Trends