17
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pandas_proflingを使うとTypeError: concat() got an unexpected keyword argument 'join_axes'が出た話(Google Colab)

Posted at

(Qiita初投稿なのでご容赦ください)
今回とあるコンペに参加した。

Google Colabで pandas_profling.ProfileReport を使って、データを眺めようと思った矢先に以下のようなエラーが発生した。

from pandas_profiling  import ProfileReport 
train = pd.DataFrame(train)
profile = ProfileReport(train)
===================================================
TypeError: concat() got an unexpected keyword argument 'join_axes'

エラーを調べていくとどうやらversionに問題があるよう。
まずpandasのversionを下げてみたが、うまくいかなかった。

次にpandas_profilingのversionをupgradeすると解決。以下コード。

import pip
!pip install -U pandas_profiling

すでにpandas_profilingをインストールしてる人は、 !pip uninstall pandas_profiling
を挟むとよい。

参考サイト
pandas-profiling not compatible with pandas v1.0 #376

17
4
1

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
17
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?