Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

データの可視化

チャートの選び方

よく言われる注意点

  • 円グラフは極力使わず、比率は帯グラフで表す(円は各カテゴリの大小がわかりにくい)

A friendly guide to choosing a chart type | Datawrapper Blog

pandasのTIPS

小数点の丸め込み

Loading...
Loading...
info - Unknown Directive
style.formatは追加のパッケージが必要になる。  
pandasのみで使えるのは .apply() と 標準の文字整形メソッド `str.format` を使うもの
0 14.4% 1 145.4% 2 76.1% 3 12.2% 4 44.4% Name: B, dtype: object
Loading...

値の大きさに応じた色を塗る

棒グラフを作る

Loading...

great_tablesパッケージできれいな表を作る

Examples – great_tables

論文のような簡潔な表や、アイコンや色を使ったカジュアルな表などいろいろ作れる

Source
Loading...

matplotlibのTIPS

autofmt_xdate():日付ラベルを整える

日付ラベルが重なりそうなら傾きをつけてくれる

matplotlib.figure.Figure.autofmt_xdate — Matplotlib 3.9.2 documentation

<Figure size 640x480 with 1 Axes>