I have a pandas dataframe that look like this
It is a large dataset with 1500 rows and 200 columns
I was wondering how can I remove the number before each value in row and column. example The values look like this: 1: 0.345 2: -0.467
I want only the value to be like this: 0.345 -0.467
How can I do that?
df.iloc[:, 1:] = df.iloc[:, 1:].applymap(lambda x: x.split(':')[-1]).astype(float)