ã¯ãã¹éè¨å®è¡æé ã¾ãã¯ãã¯ãã¹éè¨ä½æã«å¿ è¦ãªã©ã¤ãã©ãªã¨ãã¼ã¿(log2017.csv)ã®èªã¿è¾¼ã¿ã¾ãã import pandas as pd df = pd.read_csv("log2017.csv")ããããã¯ãã¹éè¨è¡¨ã®ä½æé¨åã§ãã ä½æããã«ã¯ pd.pivot_table( [ãã¼ã¿ãã¬ã¼ã å], values="â _éè¨ãããé ç®", index="â¡_è¡ã«è¨å®ãããéè¨ãã¼", columns="â¢_åã«è¨å®ãããéè¨ãã¼", aggfunc="â£_éè¨æ¹æ³" )ã¨ã³ã¼ããæ¸ãã¾ãããã ã³ã¼ãå ã®â ï½â£ã«ã¤ãã¦ã¯ä¸å³Excelã®ãããããã¼ãã«ã®ãã£ã¼ã«ãæ©è½ã®åè¨å®é ç®ç®æã示ãã¦ããã¾ãã ä¾ãã°ãã¯ãã¹éè¨è¡¨ã®ãè¡ãé¨åã«ãè³¼å ¥æããè¨å®ãããå ´å㯠values=âè³¼å ¥æâ ã¨å¼æ°ãè¨å®ããå¿ è¦ããããã¨ãããã¨ã§ãã ããã§ã¯ãåã¯ãã¹éè¨è¡¨ã®ä½æãé²ã
{{#tags}}- {{label}}
{{/tags}}