Skip to content

[feature request] add option to add a rownumber column #1155

Open
@yakir12

Description

When debugging csv files, it's really useful to be able to talk about row numbers, e.g. "the value at column Weight, in row number 3, should not be negative".
I can achieve something like that now with:

using DataFrames
transform!(df, eachindex => :rownumber)

But this breaks apart when csv files contain empty lines (some people use empty lines to visually separate groupings more easily).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions