I have columns with values like this:
Col1
1/1/100 'BA1
1/1/102Packe
1/1/102 'to_
And need to extract just 1/1/100 (from the first row) and so on (1/1/102...)
I am using:
df['col1'] = df['col1'].str.extract('(\d+)/(\d+)/(\d+)', expand=True)
But I'm getting only 1.
Not sure why this is not working, is there a problem with regex or I need some kind of mapping?