I have a pandas dataframe with a column that has an array of comma delimited strings.
I want to check if all elements in the array contain a specific string. For instance:
string = 'close'
array = ['close',',,,,,,,,,,,,close,,,,,,,,,sub,','sub']
That should be a false, since the 3rd element does not contain 'close'; whereas
string = 'close'
array = ['close',',,,,,,,,,,,,close,,,,,,,,,sub,','sub, close']
should be a true since all elements contain the string.
It's worth mentioning that my dataframe has 250+ columns and 3M+rows, so I'm looking for whatever solution would be the best performance-wise
Thank you!