This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outdrct='C:\home\gnuplot\160101\' #outdrctにrootディレクトリ格納 | |
outdrct2='C:/home/gnuplot/160101/' #outdrctにrootディレクトリ格納 | |
drctpath=sprintf("%srawdata\\trace",outdrct) # drctpathに目的のディレクトリ入れる(ココまではつなげてしまっても良い) | |
do for [i =1:100]{ | |
command=sprintf('dir %s /b | awk "NR==%4.0f{print}"',drctpath,i) # ファイル名一覧を出力するdir /bしてパイプでawkに渡す | |
data=system(command) | |
print sprintf("%4.0f番目のファイルは%sです。",i,data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ____________________________ | |
##gnuplotでファイル名やらディレクトリパスを取得する | |
##[gnuplotの便利な文字列関数](http://www.ss.scphys.kyoto-u.ac.jp/person/yonezawa/contents/program/gnuplot/string_function.html)で定義された関数を使って、gnuplot上でファイル名やディレクトリパスの取得を行う。 | |
## ____________________________ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1列目 2列目 3列目 4列目 n列目 | |
1行目 横軸見出し 見出し1 見出し2 見出し3... 見出しn... | |
2行目 横軸1 値11 値21 値31... 値n1 | |
3行目 横軸2 値12 値22 値32... 値n2 | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %load ipython_log.py | |
# IPython log file | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# %load ipython_log.py | |
# IPython log file | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
# __まずは1ファイルをフレームに取り込んでみる__________________________ | |
names1880=pd.read_csv('yob1880.txt',names=['name', 'sex', 'births']) | |
names1880.groupby('sex').births.sum() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inp=input('なんか入力しろ>') | |
# [In]# なんか入力しろ>hogehoge | |
# [In]# inp | |
# [Out]# 'hogehoge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
a=pd.Timestamp('2016-2-1') | |
# [Out]# Timestamp('2016-02-01 00:00:00') | |
b=pd.Timestamp('20160301') | |
# [Out]# Timestamp('2016-03-01 00:00:00') | |
pd.Timestamp('160301') | |
# [Out]# Timestamp('2001-03-16 00:00:00') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
df=pd.DataFrame(np.arange(9).reshape(3,3)) | |
df | |
#[Out]# 0 1 2 | |
#[Out]# 0 0 1 2 | |
#[Out]# 1 3 4 5 | |
#[Out]# 2 6 7 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e.=explorer . | |
ls=ls --show-control-chars -F --color $* | |
pwd=cd | |
clear=cls | |
history=cat %CMDER_ROOT%\config\.history | |
grep=grep --color $* | |
find=find . -name $* | |
unalias=alias /d $* | |
su="sublime_text.exe" $* |
OlderNewer