You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, I may have a numerical or datetime column that is entirely null. This can happen for a number of reasons - eg. I may only have access to a subset of data for training and it just happens to be all null.
Currently, the numerical and datetime transformers crash if they encounter this. Instead, we can gracefully fall back and allow the remaining flow to proceed.
Steps to reproduce
Reproduce this by creating data with all null values. Note that this is replicable for both datetime and numerical sdtypes.
Error Description
Sometimes, I may have a numerical or datetime column that is entirely
null
. This can happen for a number of reasons - eg. I may only have access to a subset of data for training and it just happens to be allnull
.Currently, the numerical and datetime transformers crash if they encounter this. Instead, we can gracefully fall back and allow the remaining flow to proceed.
Steps to reproduce
Reproduce this by creating data with all null values. Note that this is replicable for both datetime and numerical sdtypes.
Output:
Fix
If the entire column is null, then use some pre-determined values as the missing value replacement
Then we can convert the
TransformerInputError
into anlogger.INFO
message insetad:The text was updated successfully, but these errors were encountered: