-
Notifications
You must be signed in to change notification settings - Fork 603
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
Option to limit the number of rows output (head, tail, slice) #669
Comments
So, a sort of |
Yeah exactly, the way I was envisioning, would be either defining the amount of rows you want in each section, 1000 on a 10,000 row csv would create 10 files, with the option to include the header row in each file. However creating a |
We try to avoid creating files so that people can pipe the output of one tool into another tool, so I think we should start with |
Sounds good to me! |
+1 |
I'd seriously consider a
Can hook on agate's Not sure if/how it should handle the "gimme 50 files" case. Probably with a flag. |
Re: |
Noting that if there is demand, we can take inspiration from https://github.com/dannguyen/csvmedkit/blob/main/csvmedkit/utils/csvslice.py |
Hey I have a large CSV I'm looking to break up into smaller chunks to perform an import. Is this functionality already available with csvcut or csvgrep. I was reviewing the docs but I didn't see any avenue to do it?
If this isn't currently possible I'd be happy to contribute it to the project.
Cheers
The text was updated successfully, but these errors were encountered: