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

Add ability to modify or friendly format numerical values #286

Closed
victorhooi opened this issue Jun 13, 2014 · 1 comment
Closed

Add ability to modify or friendly format numerical values #286

victorhooi opened this issue Jun 13, 2014 · 1 comment
Labels

Comments

@victorhooi
Copy link

It would be useful to have an option that friendly formatted or applied modifiers to numbers.

For example, if you had the float:

5081998.9369165478

It would print it out as:

5,081,998.9369165478

I'm currently printing out a large table of numbers using csvlook, and it would be much more readable if I could add commas to all the numbers, so I can get a rough idea of scale (particularly since the numbers are all left-aligned, and not right-aligned, and I can't seem to find a way in csvkit to change that).

Or you might have modifiers to truncate the fractional part, rounded up/down etc. which you can apply before printing.

@jpmckinney
Copy link
Member

The implementation of this functionality is moving out of the csvkit repository into its new dependency agate (#515). This is the file that would need to be modified. You may re-open your issue on agate.

lcorbasson pushed a commit to lcorbasson/csvkit that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants