I have a pretty simple pandas DataFrame and I want to select the portion of the DataFrame that has data within a column that contains within it another string
So if this is my DataFrame and I want those columns that contain some within the Loc column how can this be done?
Loc
0 'something'
1 'nothing'
I tried two things:
df['some' in df['Loc']]
df[df.Loc.contains('some')]
But neither solution works.