summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2015-02-08 13:24:48 -0500
committerCharles Harris <charlesr.harris@gmail.com>2015-02-08 13:24:48 -0500
commit72f409cb1ec21aa8b6c28d0e82d5e26197e6b454 (patch)
tree4661572c519cc32949de5aedb34e823f7a631ccb /doc/source
parentad3f89fc8a0f0b77fd0a6360cdc903601e2fab10 (diff)
parentc09d8dcb2e031c314ab54eb277235bd2d6f294f1 (diff)
downloadnumpy-72f409cb1ec21aa8b6c28d0e82d5e26197e6b454.tar.gz
Merge pull request #5536 from stefaneng/patch-1
genfromtxt example in user docs missing delimiter
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/user/basics.io.genfromtxt.rst4
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')