We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import polars as pl from great_tables import GT df = pl.DataFrame({"x": [[1, 2], [7045, 3]]}) GT(df).fmt_nanoplot("x", plot_type="bar")
raises this error:
This is because 7045 is converted to '7.04K', and then _remove_exponent() is trying to convert that to a decimal.
'7.04K'
_remove_exponent()
The text was updated successfully, but these errors were encountered:
Similarly this fails:
import polars as pl from great_tables import GT df = pl.DataFrame({"x": [[1, 2], [-704, 3]]}) GT(df).fmt_nanoplot("x", plot_type="bar")
~Because -704 has its minus sign converted (in the line above) from a hyphen (computer speak for minus) to the minus sign character. ~
edit: wait, it's because it's formatted to '-,704'
'-,704'
here's a minimal reprex:
from great_tables.vals import fmt_number fmt_number(-704, n_sigfig=3, decimals=1, compact=True) # ['-,704']
Sorry, something went wrong.
Fixed by #335.
No branches or pull requests
raises this error:
This is because 7045 is converted to
'7.04K'
, and then_remove_exponent()
is trying to convert that to a decimal.The text was updated successfully, but these errors were encountered: