I have a dataframe df with a column A.
There is a given string s.
I want to subset the dataframe with rows which have column values in A which are substrings of
given string s.
If I wanted the other way around, I would have done something like df[df['A'].contains(s)].
But I want to filter out rows where s is a superstring of value in df['A'].
I have not been able to find an answer to this hence apologies in advance if a duplicate question exists.