Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yakir12 opened this issue Feb 21, 2025 · 0 comments
Open

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

yakir12 opened this issue Feb 21, 2025 · 0 comments

Comments

@yakir12
Copy link

yakir12 commented Feb 21, 2025

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant