Skip to content

Commit

Permalink
Fix bug due to pandas release (#359)
Browse files Browse the repository at this point in the history
* Change none no nan

* Convert all data to np.nan
  • Loading branch information
fealho committed Jan 26, 2022
1 parent 40d2667 commit adc2b1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdt/transformers/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def _get_intervals(data):
dict:
intervals for each categorical value (start, end).
"""
data = data.fillna(np.nan)
frequencies = data.value_counts(dropna=False)

start = 0
Expand Down

0 comments on commit adc2b1a

Please sign in to comment.