摘要:
import matplotlib.pyplot as plt from collections import defaultdict m = defaultdict(int) df = df.dropna() for i in df['consume_level']: m[int(i)] +=1 閱讀全文
摘要:
from collections import defaultdict for i in range(0,9): locals()['m_'+str(i)]=defaultdict(int) locals()['x_'+str(i)]=[] locals()['y_'+str(i)]=[] loca 閱讀全文
摘要:
1. 分類統計 select 單位名稱,count(case 項目類別 when '理工類' then 1 end) 理工類,count(case 項目類別 when '社科類' then 1 end) 社科類,count(case 項目性質 when '橫向' then 1 end) 橫向,cou 閱讀全文