plotly / dash-table-experiments

NO LONGER SUPPORTED - use https://github.com/plotly/dash-table instead
MIT License
174 stars 57 forks source link

Boolean values not showing #10

Open flavianh opened 6 years ago

flavianh commented 6 years ago

Hello there,

Boolean values show up empty in a data table. You can reproduce with the following code:

df = pd.DataFrame({'boolean_column': [True, False, True]})

app.layout = html.Div(children=[
    dt.DataTable(
        rows=df.to_dict('records'),
        columns=df.columns,
        editable=False,
        filterable=True,
        sortable=True,
        id='datatable'
    ),
])

As a workaround I used rows=df.astype(str).to_dict('records')

nickynicolson commented 6 years ago

Underlying problem in react-data-grid? Boolean Values Not Showing in Cell: https://github.com/adazzle/react-data-grid/issues/882