小编Red*_*gon的帖子

如何根据纪元时间获取上半部分和下半部分(“ attempt_updated_at”列)

因此,我想找出“平均 每次上半场与下半场的难度级别”,我找不到解决此问题的合适方法。我使用纪元时间将会话分为两半,然后找到平均难度级别。

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上半场难度下半场难度

epoch python-3.x pandas

3
推荐指数
1
解决办法
50
查看次数

标签 统计

epoch ×1

pandas ×1

python-3.x ×1