Skip to content

Instantly share code, notes, and snippets.

@sh16ma
Last active January 19, 2022 10:13
Show Gist options
  • Save sh16ma/e789b1c27f98f4f2a6780c9c8327d0bd to your computer and use it in GitHub Desktop.
Save sh16ma/e789b1c27f98f4f2a6780c9c8327d0bd to your computer and use it in GitHub Desktop.
#🐍 #Python #import #visualization #最初に入れとくと便利
# visualization
import matplotlib.pyplot as plt
import seaborn as sns; sns.set()
import missingno as msg
# データフレームを綺麗に出力する関数
import IPython
def display(*dfs, head=True):
for df in dfs:
IPython.display.display(df.head() if head else df)
@sh16ma
Copy link
Author

sh16ma commented Mar 10, 2021

import matplotlib.pyplot as plt
import matplotlib.style
matplotlib.style.use("ggplot")

その他描画設定。でデフォルトより綺麗にできる。
use()メソッドの引数を変えることで変更できる。

cf. matplotlibのstyleを変える - Qiita

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment