jupyter-widgets / ipydatagrid

Fast Datagrid widget for the Jupyter Notebook and JupyterLab
BSD 3-Clause "New" or "Revised" License
580 stars 51 forks source link

Datetime columns are not displayed correctly #513

Closed m-rossi closed 6 months ago

m-rossi commented 6 months ago

Describe the bug Datetime columns are not displayed correctly

To Reproduce

import datetime

import pandas as pd
import ipydatagrid

df = pd.DataFrame(
    {
        'A': [0, 1],
        'B': [datetime.datetime.now() - datetime.timedelta(days=1), datetime.datetime.now()],
    },
)
ipydatagrid.DataGrid(df)

Expected behavior Display datetime columns like 2024-05-08... (worked before)

Screenshots grafik

Environment (please complete the following information):

m-rossi commented 6 months ago

thanks @martinRenou !