因此,我想找出“平均 每次上半场与下半场的难度级别”,我找不到解决此问题的合适方法。我使用纪元时间将会话分为两半,然后找到平均难度级别。
session_id question_difficulty attempt_updated_at
5c822af21c1fba22 2 1557470128000
5c822af21c1fba22 3 1557469685000
5c822af21c1fba22 4 1557470079000
5c822af21c1fba22 5 1557472999000
5c822af21c1fba22 3 1557474145000
5c822af21c1fba22 3 1557474441000
5c822af21c1fba22 4 1557474299000
5c822af21c1fba22 4 1557474738000
5c822af21c1fba22 3 1557475430000
5c822af21c1fba22 4 1557476960000
5c822af21c1fba22 5 1557477458000
5c822af21c1fba22 2 1557478118000
5c822af21c1fba22 5 1557482556000
5c822af21c1fba22 4 1557482809000
5c822af21c1fba22 5 1557482886000
5c822af21c1fba22 5 1557484232000
Run Code Online (Sandbox Code Playgroud)
我正在研究python pandas(Jupter Notebook)。
明智的代码,我不知道从哪里开始。(Noobie警报)
我希望输出像:
session_id上半场难度下半场难度