plotly / dash-table

OBSOLETE: now part of https://github.com/plotly/dash
https://dash.plotly.com
MIT License
420 stars 74 forks source link

0 or null value in filter result breaks DataTable with fixed_rows and fixed_columns #941

Open cpascale43 opened 2 years ago

cpascale43 commented 2 years ago

Code to reproduce:

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
dash_table.DataTable(
        columns=[{"name": i, "id": i} for i in df.columns],
        data=df.to_dict("rows"),
        row_selectable="single",
        filter_action="native",
        fixed_rows={'headers': True, 'data': 1},
        fixed_columns={'headers': True, 'data': 1},
)

Sep-21-2021 15-56-46

Sep-21-2021 15-56-50

Tested on: dash-table 5.0.0rc1 and v4.12.0 Chrome 94.0.4606.54 Safari 14.1.2