我有以下DataFrame:
Date Cleaned tweets Polarity Subjectivity
2018-05-23 ....... 0 0
2018-05-23 ....... 1 1
2018-05-23 ....... 1 1
2018-05-23 ....... 0 0
2018-05-23 ....... 0 1
2018-05-24 ....... 1 0
2018_05_24. ....... 0 0
我想做的就是以这种方式获取每天的极性平均值和主观评分的平均值
Date Cleaned tweets Polarity Subjectivity
2018-05-23 ........ (0+1+1+0+0)/5 (0+1+1+0+1)/5
2018-05-24. ........ (1+0)/2 (0+0)/2
我该怎么办?有办法吗?
答案 0 :(得分:2)
async
resample