Skip to content

Commit 3dc8a5f

Browse files
committed
improve NA_action= docs
1 parent adbc4cc commit 3dc8a5f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

patsy/build.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,10 @@ def build_design_matrices(builders, data,
807807
:arg builders: A list of :class:`DesignMatrixBuilders` specifying the
808808
design matrices to be built.
809809
:arg data: A dict-like object which will be used to look up data.
810-
:arg NA_action: What to do with rows that contain missing values. Either
811-
``"drop"``, ``"raise"``, or an :class:`NAAction` object. See
812-
:class:`NAAction` for details on what values count as 'missing' (and how
813-
to alter this).
810+
:arg NA_action: What to do with rows that contain missing values. You can
811+
``"drop"`` them, ``"raise"`` an error, or for customization, pass an
812+
:class:`NAAction` object. See :class:`NAAction` for details on what
813+
values count as 'missing' (and how to alter this).
814814
:arg return_type: Either ``"matrix"`` or ``"dataframe"``. See below.
815815
:arg dtype: The dtype of the returned matrix. Useful if you want to use
816816
single-precision or extended-precision.

patsy/highlevel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,10 @@ def dmatrix(formula_like, data={}, eval_env=0,
215215
:func:`dmatrix` for lookups. If calling this function from a library,
216216
you probably want ``eval_env=1``, which means that variables should be
217217
resolved in *your* caller's namespace.
218-
:arg NA_action: What to do with rows that contain missing values. Either
219-
``"drop"``, ``"raise"``, or an :class:`NAAction` object. See
220-
:class:`NAAction` for details on what values count as 'missing' (and how
221-
to alter this).
218+
:arg NA_action: What to do with rows that contain missing values. You can
219+
``"drop"`` them, ``"raise"`` an error, or for customization, pass an
220+
:class:`NAAction` object. See :class:`NAAction` for details on what
221+
values count as 'missing' (and how to alter this).
222222
:arg return_type: Either ``"matrix"`` or ``"dataframe"``. See below.
223223
224224
The `formula_like` can take a variety of forms:

0 commit comments

Comments
 (0)