question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOC: changes to `loadtxt` in numpy v1.23.0

See original GitHub issue

Issue 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:closed
  • Created a year ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mattipcommented, Aug 11, 2022

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.

1reaction
sebergcommented, Jun 26, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found