How to get a substring based on position in pandas?

前端 未结 0 477
悲哀的现实
悲哀的现实 2021-01-07 09:56

I have a pandas dataframe as shown below:

df =pd.DataFrame({\'String\':[\'JAIJAOD\',\'ERJTD\',\'AJDIDO\',\'AJDIDO\'],\'Position\':[5,2,nan,4]})
相关标签:
回答
  • 消灭零回复
提交回复
热议问题