diff options
Diffstat (limited to 'doc/source/user')
-rw-r--r-- | doc/source/user/basics.io.genfromtxt.rst | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/doc/source/user/basics.io.genfromtxt.rst b/doc/source/user/basics.io.genfromtxt.rst index 28130b311..814ba520a 100644 --- a/doc/source/user/basics.io.genfromtxt.rst +++ b/doc/source/user/basics.io.genfromtxt.rst @@ -378,19 +378,15 @@ The :keyword:`missing_values` argument accepts three kind of values: We know how to recognize missing data, but we still need to provide a value for these missing entries. By default, this value is determined from the expected dtype according to this table: -+---------------+-------------+ -+ Expected type + Default + -+---------------+-------------+ -+ ``bool`` + ``False``+ -+---------------+-------------+ -+ ``int`` + ``-1`` + -+---------------+-------------+ -+ ``float`` + ``np.nan`` + -+---------------+-------------+ -+ ``complex`` +``np.nan+0j``+ -+---------------+-------------+ -+ ``string`` + ``'???'`` + -+---------------+-------------+ +============= ============== +Expected type Default +============= ============== +``bool`` ``False`` +``int`` ``-1`` +``float`` ``np.nan`` +``complex`` ``np.nan+0j`` +``string`` ``'???'`` +============= ============== We can get a finer control on the conversion of missing values with the :keyword:`filling_values` optional argument. Like :keyword:`missing_values`, this argument accepts different kind of values: @@ -425,7 +421,6 @@ To do that, we just have to set the optional argument :keyword:`usemask` to ``Tr The output array will then be a :class:`~numpy.ma.MaskedArray`. - .. unpack=None, loose=True, invalid_raise=True) |