I have following data frame
>>> df = pd.DataFrame(['as,df','as.df'])
>>> df
0
0 as,df
1 as.df
I would like to filter above dataFrame using string with exact match except for the case. I tried following way but it is not able to differenciate between .
and ,
>>> df[0].str.match('^As.df+$', case=False)
0 True
1 True
Name: 0, dtype: bool
Can you please help in resolving this issue.