As we don't have any values for 'dismeth' the entire column contains NaN values. In this case, Pandas will infer that this column is of type float64. To attempt to pass validation this column can be converted to str type but this means that it still fails validation as the string 'nan' is not included in the accepted values.
As we don't have any values for 'dismeth' the entire column contains NaN values. In this case, Pandas will infer that this column is of type float64. To attempt to pass validation this column can be converted to str type but this means that it still fails validation as the string 'nan' is not included in the accepted values.