-
-
Notifications
You must be signed in to change notification settings - Fork 11k
"Importing data with genfromtxt" doc page #7662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you notice the Notebooks probably aren't going to happen, that's quite a bit of work and there'll be a huge amount of them (not even sure where we'd put them). |
good catch, thanks. Actually, we should replace the first import as well, |
"Did you notice the >>> at the right top of every example block?" >> whoops! Thx :-) |
Thanks for filing this issue, needs fixing indeed. It's even worse, somehow we managed to break the Python 2.7 code as well with numpy 1.11.0:
|
DOC: fix broken genfromtxt examples in user guide. Closes gh-7662.
Re:
https://docs.scipy.org/doc/numpy-dev/user/basics.io.genfromtxt.html
... great job/effort; your examples are also fabulous: clever, illustrative, powerful! :-)
There is a Python 2 vs. 3 issue: see my 'answer'/comments, here:
https://stackoverflow.com/questions/11914472/stringio-in-python3/37380717#37380717
Also, in your last example, I believe you should have
np.genfromtxt(StringIO(data), **kwargs)
not
np.genfromtxt(StringIO.StringIO(data), **kwargs)
Also, it would be really great to have those doc pages as a Jupyter notebook(s), or at least have the code given in raw form, minus the prompts (>>> ). ;-)
Those comments often wrap into the code, which is necessarily distracting; you could also break those into two or more lines (to the right), as needed: e.g.
vs.
or adjust your page formatting (CSS? page / code block width and/or font size?).
Minor points; again, fabulous work; much appreciated! :-D
The text was updated successfully, but these errors were encountered: