Skip to content
New issue

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

Format cell display #361

Open
sebastiandemetal opened this issue Mar 23, 2021 · 1 comment
Open

Format cell display #361

sebastiandemetal opened this issue Mar 23, 2021 · 1 comment

Comments

@sebastiandemetal
Copy link

Environment

  • Operating System: windows
  • Python Version: 3.9.2
  • How did you install Qgrid: pip

Description of Issue

Display format of timedeldata objects

  • What did you expect to happen?
    Display de column the sameway it looks in pandas or change format with a function.
    image

  • What happened instead?
    The display format looks like this
    image

Reproduction Steps

import numpy as np
import pandas as pd

# td = np.random.randint(1, 400,400)

df = pd.DataFrame([pd.Timedelta(days=d) for d in td],columns=['timeDelta'])

import qgrid
display(qgrid.show_grid(df))
display(df)

What steps have you taken to resolve this already?

None

@dahanaclsa
Copy link

Same problem here but I have a temporary fix. You can use:
qgrid.set_grid_option('forceFitColumns', False)
And eventualy increase default column width for more visibility:
qgrid.set_grid_option('defaultColumnWidth', 100)
Hope this help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants