Skip to content

Commit dc5ac1b

Browse files
committed
Update oridinal encoder inverse transform documentation
1 parent ccfb4d5 commit dc5ac1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

category_encoders/ordinal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ def transform(self, X, override_return_df=False):
217217

218218
def inverse_transform(self, X_in):
219219
"""
220-
Perform the inverse transformation to encoded data.
220+
Perform the inverse transformation to encoded data. Will attempt best case reconstruction, which means
221+
it will return nan for handle_missing and handle_unknown settings that break the bijection. We issue
222+
warnings when some of those cases occur.
221223
222224
Parameters
223225
----------

0 commit comments

Comments
 (0)