データが格納されているディレクトリパスから指定した文字列を含むcsvのデータを取得したいです。
以下のように書きましたがエラーでした(;_;)
File "<ipython-input-4-edb19875677e>", line 12
print df
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(df)?
Python
1コード 2 3import pandas as pd 4import os 5 6#データが格納されている作業ディレクトリまでパス指定 7os.chdir("\〇〇\▽\レポート") 8 9#csvの読み取り 10df=pd.read_csv("*昨日*".csv) 11df=pd.read_csv("*Bulk*".csv) 12 13print df 14
回答1件
あなたの回答
tips
プレビュー