LoginSignup
5
2

More than 3 years have passed since last update.

pandas で 'DataFrame' object has no attribute 'ix' が出てきたとき

Last updated at Posted at 2020-03-21

困ったこと

pandasを使ってcsvへの書き込みをしようとしたら、以下のようなエラーを吐かれた

現象

 'DataFrame' object has no attribute 'ix' 

原因

pandasの最新バージョン(1.0.2)では無理らしい。詳しくはドキュメント読んでね❤️。

対処法

まずはpandasのバージョン確認して(今回はjupyter notebook使ってたので次のように)

 print(pd.__version__)

必要に応じて過去のバージョンに戻せばよひ。
pipなりcondaなりでバージョンを指定してなんかコマンド打とう。

5
2
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
5
2