Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bar chart matplotlib
%matplotlib inline
# グラフ化
import pandas as pd
# pandasを pdに入れる
df = pd.read_csv("population.csv")
#pdの結果をdfに入れる
df.plot.bar(y=["2016"],x=["prefecture"])
#dfをbarチャートでプロット、x縦軸に人数 Y横軸に都市名を入れる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.