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
The score can be None, but if it's a float it should be between 0 and 1. However, patito is applying this validation checks on all rows, essentially completely ignoring the fact that I allow it too also be a None. Which results in this error:
The text was updated successfully, but these errors were encountered:
ion-elgreco
changed the title
pt.Field applying validation checks also on None values
bug: pt.Field applying validation checks also on None values
Sep 4, 2023
edit: I see this inherited from PyDantic, so probably root issue is there.
I have a df with the following field
The score can be None, but if it's a float it should be between 0 and 1. However, patito is applying this validation checks on all rows, essentially completely ignoring the fact that I allow it too also be a None. Which results in this error:
The text was updated successfully, but these errors were encountered: