woodwork icon indicating copy to clipboard operation
woodwork copied to clipboard

Indicate nan handling in Ordinal docstring

Open tamargrey opened this issue 2 years ago • 0 comments

In using the Ordinal.order property as part of implementing https://github.com/alteryx/evalml/issues/1389, I ended up digging into Ordinal's implementation to remind myself how nans are handled. It could be useful to others in the future to have a sentence or two in the docstring explaining how nans in Ordinal columns get handled (they aren't treated as categories) and why (because you can't include a nan in setting the categories of the category dtype in pandas).

tamargrey avatar Oct 03 '22 21:10 tamargrey