I have the following text in column A:
A
hellothere_3.43
hellothere_3.9
I would like to extract only the numbers to another new column B (next to A), e.g:
B
3.43
3.9
I use: str.extract('(\d.\d\d)', expand=True)
but this copies only the 3.43 (i.e. the exact number of digits). Is there a way to make it more generic?
Many thanks!