環境
Windows10
python3x
vscode
以下のコードを記述しました。
import pandas as pd from pathlib import Path Path = Path('test_data.csv') df = pd.read_csv(Path, encoding='cp932') print(df)
これを実行すると以下のエラーが表示されました。
AttributeError
module 'pandas' has no attribute 'read_csv'
参考したもの
module 'pandas' has no attribute 'read_csv
Python/import時にエラーが出る場合にまず気を付ける事
pandas read_csvエラー
ファイルを検索すると大量にpandas.pyとかread_csvとか出てきます。
なのでこのコードのファイル名を変えたりcsvファイルの名前をいろいろ変えていますが、エラーが改善できません。
今までは pd.read_csvで実行で来たのですが・・。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。