|
2 | 2 | This transformer operates only on variables of type object or categorical. To |
3 | 3 | override this behaviour and allow the transformer to transform numerical |
4 | 4 | variables as well, set to `True`.\n |
5 | | - If `ignore_format` is False, the encoder will automatically select variables of |
6 | | - type object or categorical, or check that the variables entered by the user are |
7 | | - of type object or categorical. If True, the encoder will select all variables |
8 | | - or accept all variables entered by the user, including those cast as numeric. |
| 5 | + If `ignore_format` is `False`, the encoder will automatically select variables |
| 6 | + of type object or categorical, or check that the variables entered by the user |
| 7 | + are of type object or categorical. If `True`, the encoder will select all |
| 8 | + variables or accept all variables entered by the user, including those cast as |
| 9 | + numeric.\n |
| 10 | + In short, set to `True` when you want to encode numerical variables. |
9 | 11 | """.rstrip() |
| 12 | + |
10 | 13 | _unseen_docstring = """unseen: string, default='ignore' |
11 | 14 | Indicates what to do when categories not present in the train set are |
12 | | - encountered during transform. If 'raise', then unseen categories will raise an |
13 | | - error. If 'ignore', then unseen categories will be set as NaN and a warning will |
14 | | - be raised instead. |
| 15 | + encountered during transform. If `'raise'`, then unseen categories will raise |
| 16 | + an error. If `'ignore'`, then unseen categories will be encoded as NaN and a |
| 17 | + warning will be raised instead. |
15 | 18 | """.rstrip() |
0 commit comments