Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I would add that the skiprows=1 flag is skipping the first row, and is not a standard activation flag if you want to keep all the data. Worked perfectly! Commented Jan 2, 2017 at 21:09
  • loadtxt does not load also the column names which happen with names=True on genfromtxt Commented Oct 26, 2017 at 12:06
  • Can I ask - is open local to that single line? As in, does the file close at the end of the line? Commented Mar 22, 2018 at 0:14
  • Yes, it closes the file. See also: stackoverflow.com/questions/8011797/… Commented Mar 22, 2018 at 18:05
  • 1
    @fireball.1 speed tests for claims like this would be great for posterity Commented May 30, 2020 at 17:27