df
type content
1 task buy xbox
2 task buy fruit from supermarket
3 note orange with squash\buy if cheap
4 note apple
5 task buy sunglassess
注释指的是它正上方的任务。如何操纵df以获得以下df? 预期产出:
task comment1 comment2
1 buy xbox
2 buy fruit from supermarket orange with squash apple
buy if cheap
3 buy sunglassess
...
使用helper} 获取计数器,并通过^{} 和^{} 来重塑形状:
Series
通过task
通过比较值与累计和来获取组,通过^{相关问题 更多 >
编程相关推荐