Skip to content
This repository was archived by the owner on Jun 22, 2019. It is now read-only.

Boolean values not showing #10

Open
flavianh opened this issue Oct 7, 2017 · 1 comment
Open

Boolean values not showing #10

flavianh opened this issue Oct 7, 2017 · 1 comment

Comments

@flavianh
Copy link

flavianh commented Oct 7, 2017

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
Copy link

Underlying problem in react-data-grid?
Boolean Values Not Showing in Cell: adazzle/react-data-grid#882

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

No branches or pull requests

2 participants