zillow / luminaire

Luminaire is a python package that provides ML driven solutions for monitoring time series data.
https://zillow.github.io/luminaire
Apache License 2.0
763 stars 59 forks source link

Unable to profile data #88

Open grechasneak opened 3 years ago

grechasneak commented 3 years ago

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!

sayanchk commented 3 years ago

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