How to covert a DataFrame column containing strings and NaN values to floats. And there is another column whose values are strings and floats; how to convert th
NaN
df['MyColumnName'] = df['MyColumnName'].astype('float64')