Python shift() from same column like in Excel

后端 未结 0 776
暖寄归人
暖寄归人 2021-01-19 05:27

I want to create this table in python:

x1  target
1   1
1   1
23  2
32  3
1   1
2   2
2   3
4   4
1   1

This is easy to solve in Excel,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题