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
Originally posted by marceloandrioni February 19, 2025 Sorry if it's a very basic question, but it's my first time using great_tables.
I was trying to better format a very small number using:
from great_tables import vals vals.fmt_scientific(0.000123456, n_sigfig=3, exp_style="E") ['1.23E−40']
But the exponent keeps showing an extra zero. Does someone can point me to the correct way of doing this?
Thank you.
This issue seems to stem from the use of exp_style= and values not using that arg are unaffected.
exp_style=
The text was updated successfully, but these errors were encountered:
great-tables/great_tables/_formats.py
Lines 841 to 848 in dc82197
It looks like the error is caused by the padding 0. Would using str.rjust() instead of str.ljust() help resolve the issue?
0
str.rjust()
str.ljust()
Sorry, something went wrong.
No branches or pull requests
Discussed in #614
Originally posted by marceloandrioni February 19, 2025
Sorry if it's a very basic question, but it's my first time using great_tables.
I was trying to better format a very small number using:
But the exponent keeps showing an extra zero. Does someone can point me to the correct way of doing this?
Thank you.
This issue seems to stem from the use of
exp_style=
and values not using that arg are unaffected.The text was updated successfully, but these errors were encountered: