3
3

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 5 years have passed since last update.

pandas-profilingを使うとjapanize-matplotlibが無効になってしまう

Posted at

はじめに

Jupyter Notebookで作業をしていると、愛用させていただいているjapanize-matplotlibが突然無効になってしまい、豆腐だらけになってしまった。
どうやら、pandas-profilingを使った後、無効になってしまう模様。

対処法

pandas-profilingのフォント設定が影響しているので、pandas-profilingのフォント設定を変更する。
具体的にはpandas_profiling.mplstyleの中身を変更するだけ。

pandas_profiling.mplstyle

# 変更前
font.sans-serif: Arial, Liberation Sans, Bitstream Vera Sans, sans-serif

# 変更後(IPAexGothic を追加)
font.sans-serif: IPAexGothic, Arial, Liberation Sans, Bitstream Vera Sans, sans-serif

参考

pandas_profiling で列名が日本語のときに相関プロットのラベルが豆腐(文字化け)になるのをなんとかする

3
3
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
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?