DOC: changes to `loadtxt` in numpy v1.23.0
See original GitHub issueIssue with current documentation:
As noted here, now np.loadtxt
ignores empty lines towards max_rows
. This includes comment lines (e.g., lines starting with #
) as well, previously which was not the case and not mentioned in the release notes. Is this breaking change intended? Thank you.
Idea or request for content:
No response
Issue Analytics
- State:
- Created a year ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
numpy.loadtxt — NumPy v1.23 Manual
Changed in version 1.11.0: When a single column has to be read it is possible to use an integer instead of a tuple....
Read more >numpy.loadtxt — NumPy v1.24 Manual
Changed in version 1.11.0: When a single column has to be read it is possible to use an integer instead of a tuple....
Read more >NumPy 1.23.0 Release Notes
Implementation of loadtxt in C, greatly improving its performance. Exposing DLPack at the Python level for easy data exchange. Changes to the promotion...
Read more >numpy.genfromtxt — NumPy v1.23 Manual
numpy.genfromtxt# ... Load data from a text file, with missing values handled as specified. Each line past the first skip_header lines is split...
Read more >Release notes — NumPy v1.24 Manual
... np.loadtxt now supports quote character and single converter function · Changing to dtype of a different size now requires contiguity of only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Let’s close this. If someone wants to further discuss
max_rows
they should open an new issue, and refer back to the salient points from this one.Yeah, the new meaning allows to say how big the result is, but the “read until this line in the file” meaninig also makes sense if you first manually browsed the file (There is a subtlety that in theory a field could include a newline now, though). I somewhat tend to this one, because
lines
would be a better name for the other one. OTOH, its not a strong opinion!