Skip to content

Commit dbccc81

Browse files
committed
Fix format string specifier for fetchdictarray; update docs
1 parent db2b9c0 commit dbccc81

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/npcontainer.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ Cursor_fetchdictarray(PyObject *self, PyObject *args, PyObject *kwargs)
17181718
!PyArg_ParseTupleAndKeywords(
17191719
args,
17201720
kwargs,
1721-
"|npsO",
1721+
"|nsO",
17221722
const_cast<char **>(Cursor_npfetch_kwnames),
17231723
&nrows,
17241724
&null_suffix,
@@ -1741,7 +1741,7 @@ Cursor_fetchdictarray(PyObject *self, PyObject *args, PyObject *kwargs)
17411741
}
17421742

17431743
char fetchdictarray_doc[] =
1744-
"fetchdictarray(size=-1, null_suffix='_isnull', target_dtypes=None)\n"
1744+
"fetchdictarray(size=-1, null_suffix=None, target_dtypes=None)\n"
17451745
" --> a dictionary of column arrays.\n"
17461746
"\n"
17471747
"Fetch as many rows as specified by size into a dictionary of NumPy\n"
@@ -1755,14 +1755,14 @@ char fetchdictarray_doc[] =
17551755
"size : Optional[int]\n"
17561756
" The number of rows to fetch. Use -1 (the default) to fetch all\n"
17571757
" remaining rows.\n"
1758-
"target_dtypes : Optional[dict]\n"
1759-
" If provided, this mapping between {column name: dtype} coerces \n"
1760-
" the values read from the database into arrays of the requested\n"
1761-
" dtypes.\n"
17621758
"null_suffix : Optional[str]\n"
17631759
" If specified, a new boolean column named `<column_name><null_suffix>` will be\n"
17641760
" included in the output, with values indicating which values in `<column_name>` were\n"
17651761
" null in the original array. If None, no such column will be included.\n"
1762+
"target_dtypes : Optional[dict]\n"
1763+
" If provided, this mapping between {column name: dtype} coerces \n"
1764+
" the values read from the database into arrays of the requested\n"
1765+
" dtypes.\n"
17661766
"\n"
17671767
"Returns\n"
17681768
"-------\n"

0 commit comments

Comments
 (0)