-2
I have the following code:
df10['Total_Forecast'] = df10['Total_Forecast'].apply(lambda x: float(x.replace(".","").replace(",",".")))
It’s working, but I need to apply replace column by column of df10. I have tried to take the name out of the column, but the code does not work to sweep all columns of df10 that has comma, turn point. There’s some way to do it for the whole county?
But in this case, if I have columns that have no commas, but are int columns, returned Nan. Why?
– Vivian
Updated according to your comment.
– Paulo Marques
It worked! Thank you!!! D
– Vivian