Skip to content
This repository has been archived by the owner. It is now read-only.

Adding comma number formatting or get filtering to work with comma separated strings #17

Open
nmiculinic opened this issue Nov 8, 2017 · 4 comments

Comments

@nmiculinic
Copy link

@nmiculinic nmiculinic commented Nov 8, 2017

I'd like to see big numbers (e.g. 100,000,100.123124421) being comma delimited by the thousands.

How can I achieve that?

@josesho

This comment has been minimized.

Copy link

@josesho josesho commented Nov 15, 2017

not sure what your data looks like, but if you're using dash_table_experiments to displaypandas DataFrames, you can apply a custom formatting function to relevant columns before passing the DataFrame to DataTable.

Hope this helps!

@nmiculinic

This comment has been minimized.

Copy link
Author

@nmiculinic nmiculinic commented Nov 15, 2017

That's fine, except data is then transformed to string, and not filterable anymore (with comparison operators, that is <2, >5 aren't working anymore)

@josesho

This comment has been minimized.

Copy link

@josesho josesho commented Nov 15, 2017

is the range of your numbers large or small? (i.e. could be from 1 to 10 million?) If the range isn't too big, you could consider either a log-transform, or simply expressing everything in millions or thousands.

I suppose having an Excel-like display for large numbers would be nice, but it seems you'd have to hack either the underlying adazzle React data grid to achieve that.... and the React data grid doesn't seem to have any documentation regarding that?

@chriddyp chriddyp changed the title Adding comma number formatting Adding comma number formatting or get filtering to work with comma separated strings Dec 15, 2017
@deepakagrawal

This comment has been minimized.

Copy link

@deepakagrawal deepakagrawal commented Nov 5, 2018

It might be great to add option of formatting column as percentage, changing decimal numbers (similar to excel)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.