Skip to content

Counting number of rows when skipping an empty row? #20

@seberg

Description

@seberg

The current np.loadtxt seems to have a slightly weird way to handle max_rows in the presence empty lines (which are ignored). It seems to count the number of actual rows (including empty ones) from the first non-empty one. I.e. \n\n\n\n1,2\n\n3,4 with max_rows=2 reads 1,2. Since it reads at least one row, starts counting from there and then includes the empty-line while counting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions