I have a dataframe that I read in from an excel using pandas.read_excel. One of the columns has numbers but in excel it shows as text, and the null values have a . in them. I need to cast it to a float in pandas, but first need to replace the . with a blank or else it cannot cast to a float. I try:
df['EMP_NUM']=np.where(df['EMP_NUM'] == '.','', df['EMP_NUM'])
I get:
TypeError: invalid type comparison