luminaire icon indicating copy to clipboard operation
luminaire copied to clipboard

Unable to profile data

Open grechasneak opened this issue 3 years ago • 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 avatar Mar 23 '21 23:03 grechasneak

@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)

sayanchk avatar Mar 24 '21 00:03 sayanchk