I have this dataframe , and I want to replace any cell that contains an alphabetic character with an empty value .
df = pd.DataFrame(dict(A = pd.Series(['AB5 La2','-1','8577Y--00']), B = pd.Series(['2\nDate','-45.00','-'])))
df.replace(['.*[a-zA-Z].*'], [''], regex=True , inplace=True)
df
Initially , the dataframe was :
it seems like it doesn't replace all the cell
All i want is to replace all cell with empty value when it contains an alphabetic character
I appreciate any help , thank you