diff --git a/doc/modules/preprocessing.rst b/doc/modules/preprocessing.rst index 9c2af6424a298..e7d3969d7a212 100644 --- a/doc/modules/preprocessing.rst +++ b/doc/modules/preprocessing.rst @@ -685,7 +685,7 @@ be encoded as all zeros:: All the categories in `X_test` are unknown during transform and will be mapped to all zeros. This means that unknown categories will have the same mapping as -the dropped category. :meth`OneHotEncoder.inverse_transform` will map all zeros +the dropped category. :meth:`OneHotEncoder.inverse_transform` will map all zeros to the dropped category if a category is dropped and `None` if a category is not dropped::