Skip to content
This repository has been archived by the owner on Jun 22, 2019. 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

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

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.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants