firstly
I need to be able to test that 'abc' is an ordered subset of 'axbyc' and 'egd' is not an ordered subset of 'edg'. Another way to say it is that it is an ordered subset if I can remove specific characters of of one string and have it be equal to another.
secondly
I need to compare one pd.Series with another pd.Series to determine if the elements of one are ordered subsets of the corresponding element of the other.
consider the pd.Series s1 and s2
s1 = pd.Series(['abc', 'egd'])
s2 = pd.Series(['axbyc', 'edg'])
I need to compare them such that the results of the question
Are the elements of s1 ordered subsets of s2 equals
0 True
1 False
dtype: bool