I have a dataframe column containing integers, floating numbers and strings. I want to process this column depending on what type of data is present in a particular record.
Now the problem is that, I am able to separate out integer records by Series.str.isnumeric() call, but floating numbers return False here. How can I separate ints & floats together. Here is a basic code:
import numpy as np
import pandas as pd
d = {'A' : ['1234', '12.16', '1234m']}
df= pd.DataFrame(d)
df.A.str.isnumeric()
I get [True False False] as of now, I expect to get [True, True, False].