pandas.DataFrame.join 自己弄了很久,一看官网.感觉自己宛如智障.不要脸了,直接抄 DataFrame.join(other, on=None, how='left', lsuffix='', rsuffix='', sort=False) Join columns with other DataFrame either on index or on a key column. Efficiently Join multiple DataFrame objects by in
第一个查询的结果集 select * from( select c.msName,a.msId,c.msPrice, c.msPrice*COUNT(a.msId) as totalMoney,sum(a.msAmount) as totalCount from BillConsume a right join ( msTime order by msTime asc) b on a.msTime between b.startTime and b.endTime and a.msId!= le
第一条sql: select unit,count(*)as number from archives_management group by unit 第二条sql: select fine_units,count(*) as fine_number from fine group by fine_units 注:两条sql 分别查询结果如下图 要求生成如下格式: unit number fine_num