zillow/luminaire

Unable to profile data

grechasneak opened this issue · 1 comments

Hello I have the following data frame.
image

I am calling it using
imputed_data, pre_prc = de_obj.profile(hourly, impute_only=True)

and getting the following error.
{'success': False,
'ErrorMessage': "ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''"}

I have been trying to figure it out, but no avail. Any help would be much appreciated. Thanks!

@grechasneak The most possible reason for this error is that the 'raw' column is of type str. The 'raw' column needs to be a numeric column in order to perform any imputation.

You can try casting the column to float before profiling, i.e. hourly['raw'] = hourly['raw'].astype(np.float)