fork download
  1. import pandas as pd
  2.  
  3. #ファイル全読み込み
  4. df = pd.read_excel('sample.xlsx', sheet_name=None)
  5.  
  6.  
  7. #Excel→CSV
  8.  
  9. for i in df:
  10. #シート名を表示
  11. print(i)
  12. # CSV形式で出力
  13. df[i].to_csv('data'+str(i)+'.csv', encoding='utf-8')
Runtime error #stdin #stdout #stderr 0.04s 9328KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 1, in <module>
ImportError: No module named 'pandas'