Skip to content

Instantly share code, notes, and snippets.

View hujuu's full-sized avatar
🌊
big wave

hujuu hujuu

🌊
big wave
  • Tokyo
  • 17:19 (UTC +09:00)
  • X @hujuu
View GitHub Profile
@hujuu
hujuu / Tower-in-Noise.markdown
Created January 26, 2014 11:31
A Pen by Ken Nakai.
@hujuu
hujuu / test.html
Created August 21, 2014 01:26
from sublime
test
@hujuu
hujuu / graph.R
Last active October 17, 2018 16:24
R と R Studioのインストール ref: https://qiita.com/hujuu/items/ddd66ae8e6f3f989f2c0
x <- 1:10
y <- 1:10 # plot(x 軸のデータ, y 軸のデータ, オプション)
plot(x, y) # 範囲は自動で決まる(xlim=c(1,10)を指定した場合と同じ)
plot(x, y, xlim=c(10,1)) # x 軸の正の向きを左向きにすることも出来る
@hujuu
hujuu / file0.sh
Last active August 19, 2018 13:13
【R】【MeCab】RMeCabのインストールと形態素解析 ref: https://qiita.com/hujuu/items/314a64a50875cdabf755
$ brew doctor
@hujuu
hujuu / file0.sh
Last active December 10, 2018 00:52
[Mac]HomebrewでJenkinsをインストール ref: https://qiita.com/hujuu/items/5bfc80c265ae7d162966
$ xcode-select —install
@hujuu
hujuu / file0.sh
Last active September 2, 2018 10:42
MacにAndroid Studioを入れて、adbを使える状態にする ref: https://qiita.com/hujuu/items/509fb234d29de10d6f1b
$ adb devices
@hujuu
hujuu / file0.r
Last active April 16, 2017 07:45
【R】【tidyr】スクレイピングからデータのグラフ化までまとめて実行 ref: http://qiita.com/hujuu/items/2bb08a511546f3cbc322
install.packages("tidyr")
library(tidyr)
@hujuu
hujuu / file0.txt
Last active March 7, 2017 16:05
Pythonを使ってJIRAチケット作成 ref: http://qiita.com/hujuu/items/8c27e8f53db54a2a4f69
pip install jira
@hujuu
hujuu / group_apply.py
Last active March 23, 2019 12:56
pandasでgroupbyしたところにapplyして使う用の関数です
def dup(df, columns=['columns_name']):
return df.duplicated(subset=columns)
def dup_count(df, columns=['columns_name']):
return df.duplicated(subset=columns).value_counts()
def vcount(df):
return df.value_counts()
def count(df):
id order_at menber_id item_id count price
1 2015/7/2 56 71 1 4200
2 2015/7/2 70 17 1 2300
3 2015/7/2 74 14 1 100
4 2015/7/2 78 43 1 1000
5 2015/7/2 79 55 1 100
6 2015/7/2 82 84 1 200
7 2015/7/3 61 100 1 700
8 2015/7/3 72 31 1 5000
9 2015/7/3 75 97 1 1000