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