Skip to content

Commit 0c0f415

Browse files
committed
Use md instead of rst in docstrings.
1 parent cbcd50e commit 0c0f415

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

metalearners/_narwhals_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def nw_to_dummies(
1818
1919
This operation is also referred to as one-hot-encoding.
2020
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.
2222
"""
2323
if len(categories) < 2:
2424
raise ValueError(

metalearners/slearner.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,17 @@ def _append_treatment_to_covariates(
186186
) -> Matrix:
187187
"""Append treatment column to covariates.
188188
189-
If ``support_categoricals`` is ``False``:
189+
If `support_categoricals` is `False`:
190190
191191
* the returned result will be of the same type as ``X``
192192
* the treatment is appended with one-hot-encoding, where the
193193
treatment value column is omitted
194194
195-
If ``support_categoricals`` is ``True``:
195+
If `support_categoricals` is `True`:
196196
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
200200
* the treatment is appended with a categorical column
201201
"""
202202
w = adapt_treatment_dtypes(w)

0 commit comments

Comments
 (0)