How to slice a string in a dynamic way in pandas

后端 未结 0 811
北恋
北恋 2021-01-13 02:13
df3= df[\'Channels\'].str[0:(df[\'Channels\'].str.index(\',\') + 1)]
df3.head()

I am trying to get part of a string but the cut needs to be dynamic

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