按日期和每天最大小时数对行进行排序-Python中的groupby函数

时间:2019-04-25 02:55:58

标签: python pandas pandas-groupby

我的df以下。

enter image description here

现在,我需要产生以下结果,以按日期分组的最大小时数的顺序显示行数。

enter image description here

SELECT column_name(s) FROM table_name 
WHERE condition
GROUP BY column_name(s)
ORDER BY column_name(s);

使用上面的SQL,可以实现这一点。但是,我想知道如何用python编写此代码。

0 个答案:

没有答案
相关问题