summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorI--P <irvin.probst@ensta-bretagne.fr>2015-11-09 10:58:32 +0100
committerI--P <irvin.probst@ensta-bretagne.fr>2016-02-01 12:11:32 +0100
commit849b81804fb7a11dc80821dbd166562225c8450f (patch)
tree5b7f841a814c9c5747855f19a18eadd2014b616d /doc
parentea9775606c8303a3fd65fdf21a4a02846cef971e (diff)
downloadnumpy-849b81804fb7a11dc80821dbd166562225c8450f.tar.gz
ENH: usecols now accepts an int when only one column has to be read
Diffstat (limited to 'doc')
-rw-r--r--doc/release/1.12.0-notes.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/release/1.12.0-notes.rst b/doc/release/1.12.0-notes.rst
index d6089c311..d093e0542 100644
--- a/doc/release/1.12.0-notes.rst
+++ b/doc/release/1.12.0-notes.rst
@@ -61,6 +61,11 @@ New Features
Improvements
============
+*np.loadtxt* now supports a single integer as ``usecol`` argument
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+Instead of using ``usecol=(n,)`` to read the nth column of a file
+it is now allowed to use ``usecol=n``. Also the error message is
+more user friendly when a non-integer is passed as a column index.
Changes