Skip to content

Commit d5bbe7d

Browse files
alexbarrosaquemy
authored andcommitted
fix: to_category misshandling pd.NA (#1464)
1 parent 472c216 commit d5bbe7d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ydata_profiling/model/typeset_relations.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def to_category(series: pd.Series, state: dict) -> pd.Series:
5252
val = series.astype(str)
5353
if hasnans:
5454
val = val.replace("nan", np.nan)
55+
val = val.replace("<NA>", np.nan)
5556

5657
return val.astype("string")
5758

0 commit comments

Comments
 (0)