摘要:
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 阅读全文