File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def nw_to_dummies(
18
18
19
19
This operation is also referred to as one-hot-encoding.
20
20
21
- ``x` ` is expected to have values which can be cast to integer.
21
+ `x ` is expected to have values which can be cast to integer.
22
22
"""
23
23
if len (categories ) < 2 :
24
24
raise ValueError (
Original file line number Diff line number Diff line change @@ -186,17 +186,17 @@ def _append_treatment_to_covariates(
186
186
) -> Matrix :
187
187
"""Append treatment column to covariates.
188
188
189
- If `` support_categoricals`` is `` False` `:
189
+ If `support_categoricals` is `False`:
190
190
191
191
* the returned result will be of the same type as ``X``
192
192
* the treatment is appended with one-hot-encoding, where the
193
193
treatment value column is omitted
194
194
195
- If `` support_categoricals`` is `` True` `:
195
+ If `support_categoricals` is `True`:
196
196
197
- * the returned result will be a `` pandas.DataFrame` `, except
198
- if ``X`` was a `` polars.DataFrame` `; in the latter case
199
- the returned result will be a `` polars.DataFrame` `, too
197
+ * the returned result will be a `pandas.DataFrame`, except
198
+ if `X` was a `polars.DataFrame`; in the latter case
199
+ the returned result will be a `polars.DataFrame`, too
200
200
* the treatment is appended with a categorical column
201
201
"""
202
202
w = adapt_treatment_dtypes (w )
You can’t perform that action at this time.
0 commit comments