Fill in 0.5 for undefined ratio.

When there are no calls and no smses (of a particular type), the ratio is undefined. But since their number is the same, I argue that the ratio can represent that with a 0.5, similarly to the case where no_calls_all = no_sms_all != 0.
communication
junos 2021-08-21 17:33:31 +02:00
parent 00015a3b8d
commit e2e268148d
1 changed files with 1 additions and 0 deletions

View File

@ -337,5 +337,6 @@ def calls_sms_features(
)
# Calculate new features and create additional columns
)
.fillna(0.5, downcast="infer")
)
return count_joined