quantopian/qgrid

Numbers in (5e-6, 1e-15] are displayed as 0

x1155665 opened this issue · 0 comments

Environment

  • Operating System: RHEL 7

  • Python Version: 3.7.7

  • How did you install Qgrid: conda

  • Python packages:

    • jupyter_client 6.1.3 py_0 conda-forge
    • jupyter_core 4.6.3 py37hc8dfbb8_1 conda-forge
    • jupyterlab 2.0.1 py_0 conda-forge
    • jupyterlab_server 1.0.9 py_0 conda-forge
    • notebook 6.0.3 py37hc8dfbb8_0 conda-forge
    • numpy 1.18.5 py37h8960a57_0 conda-forge
    • pandas 1.0.5 py37h0da4684_0 conda-forge
    • qgrid 1.3.1 py37hc8dfbb8_0 conda-forge
  • Jupyter lab packages (if applicable):

    • @jupyter-widgets/jupyterlab-manager v2.0.0 enabled OK
    • jupyterlab-plotly v4.8.2 enabled OK
    • plotlywidget v4.8.2 enabled OK
    • qgrid2 v1.1.3 enabled OK

Description of Issue

  • What did you expect to happen?
    Show the numbers correctly
  • What happened instead?
    Numbers inside (5e-6, 1e-15] are displayed as 0

Reproduction Steps

  1. In JupyterLab, run
import qgrid 
qgrid.show_grid(pd.DataFrame({"A":[5e-6], "B":[4.999e-6], "C":[1e-15], "D":[ 9.99e-16]}))
  1. You should see
    image

What steps have you taken to resolve this already?

Nothing