question editted to avoid duplication
I have a pandas dataframe with A, B, C, D , E
columns:
A B C D E
X 2 3 - 5
Y Â 3 4 Â
Z - - Â 5
I would like to remove all non-machine readable characters (Â
) and non-numeric characters (-
) from column B
onwards and replace them with NaN
.
Thanks