Home>
I'm learning python
When I read csv, the following error occurred.
-------------------------------------------------- -------------------------
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.
Please provide more detailed information here.
-
Answer # 1
Related articles
- python - the py file cannot be executed in the task scheduler 0x2 error
- python 3x - best estimator: i get an error with no syntax, so please tell me what to do
- python - categorical_crossentoropy error does not resolve
- python - i want to display an image with pysimplegui, but an error occurs
- python - error when scraping with selenium and firefox
- [python] graphviz output format error
- python - i get an error when connecting to a voice channel with discordpy
- [python] i don't know how to solve the error
- python - error in image binarization using cv2adaptivethreshold function
- python - an error has occurred in yolo v3
- python - idle cannot resolve the "rootgeometry" error
- python - tuple error does not resolve
- python max () arg is an empty sequence and an error occurs and it cannot be processed well
- python 3x - error after changing to csv file
- python error code how to deal with
- python - in raspberry pi, the error occurs only in the case of the automatic start program using systemd
- python - sklearn, svm error
- python - i get the error "no attribute'connect'" when connecting a signal to a slot
- i want to resolve a syntax error in a python while statement
Trends
It's read_csv, not read.csv.