For one column in a dataset what is the best way to set all cells after a given index to a constant?

前端 未结 0 1937
梦谈多话
梦谈多话 2020-12-18 07:54

Given a Pandas dataframe with A as an index:

A   B   C
1   2   5
2   5   8
3   6   3
4   8   2

Knowing index 3, what is the best way to get:<

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