Skip to content

Instantly share code, notes, and snippets.

View knnkanda's full-sized avatar

Paul Kanda Toshiaki knnkanda

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knnkanda
knnkanda / %matplotlib inline
Created April 1, 2018 10:30
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横軸に都市名を入れる
@knnkanda
knnkanda / %matplotlib inline
Created April 1, 2018 10:30
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横軸に都市名を入れる
@knnkanda
knnkanda / %matplotlib inline
Created April 1, 2018 10:30
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横軸に都市名を入れる
@knnkanda
knnkanda / csv from
Last active April 1, 2018 09:55
from csv population
import pandas as pd
pd.read_csv("population.csv")
@knnkanda
knnkanda / calendar month
Created April 1, 2018 09:29
python3 jupyter notebook calendar month
import calendar
tc= calendar.TextCalendar(firstweekday=0)
print(tc.prmonth(2018, 4))
@knnkanda
knnkanda / 20180318Python_programing.ipynb
Created March 18, 2018 07:37
Bloombergデータのスクレイピング方法
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@knnkanda
knnkanda / apple marketcap.ipynb
Last active March 18, 2018 06:58
20180318bs4
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[pieChart title="日本の広告費2017年 出典:電通"]
['媒体', '売上'],
['インターネット',15094],
['テレビ',19478],
['新聞',5147],
['雑誌',2023],
['ラジオ',1290],
['屋外',3208],
['交通',2002],
['折込',3701],