diff options
author | Stefan Eng <stefaneng13@gmail.com> | 2015-02-05 08:40:00 -0800 |
---|---|---|
committer | Stefan Eng <stefaneng13@gmail.com> | 2015-02-05 08:40:00 -0800 |
commit | c09d8dcb2e031c314ab54eb277235bd2d6f294f1 (patch) | |
tree | 3e077d90e131f79ba5ceec9081d76b76f4d016fe /doc | |
parent | 75eeb75f109c39de8c1cdc475043e7cd3420322b (diff) | |
download | numpy-c09d8dcb2e031c314ab54eb277235bd2d6f294f1.tar.gz |
genfromtxt example in user docs missing delimiter
The example given in the user docs does not run correctly without adding `delimiter=","`. This add the missing keyword to allow the examples to be run.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/user/basics.io.genfromtxt.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/source/user/basics.io.genfromtxt.rst b/doc/source/user/basics.io.genfromtxt.rst index edf48bc15..11205e555 100644 --- a/doc/source/user/basics.io.genfromtxt.rst +++ b/doc/source/user/basics.io.genfromtxt.rst @@ -94,12 +94,12 @@ This behavior can be overwritten by setting the optional argument >>> data = "1, abc , 2\n 3, xxx, 4" >>> # Without autostrip - >>> np.genfromtxt(StringIO(data), dtype="|S5") + >>> np.genfromtxt(StringIO(data), delimiter=",", dtype="|S5") array([['1', ' abc ', ' 2'], ['3', ' xxx', ' 4']], dtype='|S5') >>> # With autostrip - >>> np.genfromtxt(StringIO(data), dtype="|S5", autostrip=True) + >>> np.genfromtxt(StringIO(data), delimiter=",", dtype="|S5", autostrip=True) array([['1', 'abc', '2'], ['3', 'xxx', '4']], dtype='|S5') |