summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
authorBharat123rox <bharatraghunthan9767@gmail.com>2019-05-12 23:43:18 +0530
committerBharat123rox <bharatraghunthan9767@gmail.com>2019-05-12 23:43:18 +0530
commit6879dcd5041a64327d0245263347a91f35e96a95 (patch)
tree31e8b826a630647399503b2f645825c51f7bc5d6 /numpy/lib/npyio.py
parent5f432a1851beaddd737a7925d47fae217405d43a (diff)
downloadnumpy-6879dcd5041a64327d0245263347a91f35e96a95.tar.gz
Complete the example
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 862c8c9dc..1845305d1 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -1724,6 +1724,8 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
... hello world,11
... numpy,5''')
>>> np.genfromtxt(f, dtype='S12,S12', delimiter=',')
+ array([(b'text', b''), (b'hello world', b'11'), (b'numpy', b'5')],
+ dtype=[('f0', 'S12'), ('f1', 'S12')])
"""
if max_rows is not None: