LoginSignup
1
0

More than 5 years have passed since last update.

Pandas でExcelを読む時のカラム指定

Last updated at Posted at 2018-04-11

目的

pandas でExcelファイルを解析したいが、パラメータエラーと怒られ、調べて解決したが、その過程を備忘録とする

環境

Windows7+Anaconda3(4.3.30)

試したソース

sheet1 = Excel.parse(sheetname='2004', index_col=None,
                     na_values=['NA'], usecols='A,C:AA')

問題

上記のコードを実施すると、”, is not in the list" 旨のメッセージが出た。
usecolsがdeprected parse_cols で試しても、一向に改善されません。

解決

いろいろ調べた結果、なんと最新のAnaconda3なのに、Pandasは最新ではないと...
pip install pandas --upgrade
を実施すると、解決!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0