Skip to content

Instantly share code, notes, and snippets.

@dragstar328
dragstar328 / seaborn_plot_without_set.ipynb
Created April 10, 2018 03:02
set()しないとこうなる
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragstar328
dragstar328 / seaborn_plot_with_set.ipynb
Last active April 10, 2018 03:03
seabornをimportしたらset()する
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragstar328
dragstar328 / legend_test.ipynb
Created January 9, 2018 05:53
seabornを使ったプロットの凡例を見やすく
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragstar328
dragstar328 / pandas_to_sklean.ipynb
Last active December 27, 2017 02:16
pandasからnparrayに直す手習い
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragstar328
dragstar328 / pickle_test.ipynb
Created December 26, 2017 05:59
Pickleとjoblibのテスト
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragstar328
dragstar328 / matplotloib_sample.ipynb
Last active September 23, 2016 01:47
matplotlib_sample
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pandas as pd
from matplotlib import pyplot as plt
import seaborn as sns
import numpy as np
from scipy import optimize as opt
kion = pd.read_csv("kion_20160501.csv")
kion.head()
Px = np.arange(0, len(kion), 1)
@dragstar328
dragstar328 / kion_kinji.r
Last active May 18, 2016 06:28
気温の近似曲線を描く
library(ggplot2)
kion = read.csv("kion_20160501.csv", header = T, colClasses = c("POSIXct", "numeric"))
head(kion)
summary(kion)
g = ggplot(kion, aes(1:nrow(kion), temp)) + geom_line(colour="blue") + labs(title="2016/05/01")
plot(g)
x = 1:nrow(kion)
@dragstar328
dragstar328 / ggpairs_color.r
Created May 3, 2016 10:45
ggpairs plots color
library(ggplot2)
library(GGally)
ggpairs(iris, aes_string(colour="Species", alpha=0.5))
@dragstar328
dragstar328 / ggpairs_bw.r
Created May 3, 2016 10:45
ggpairs plots bw
library(GGally)
ggpairs(iris, colour="Species", alpha=0.5)