Jul-08-2020, 08:53 AM
I have just started using pandas and I have a question related to a coding bit.
Thank you!
s = pd.Series(['a1', 'b2', 'c3']) s.str.extract(r'([ab])(\d)')I didnt quit get what the second line of code is supposed to do and I find the
r'([ab])(\d)'a bit strange. (it is the first time I come across this kind of command).
Thank you!