Datatable disappears with filtering and virtualization

from dash import Dash, dash_table
import pandas as pd

app = Dash(__name__)

df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/solar.csv')
app.layout = dash_table.DataTable(
    data=df.to_dict('records'),
    columns=[{"name": i, "id": i} for i in df.columns],
    virtualization=True,
    filter_action='native',
)


if __name__ == '__main__':
    app.run_server(debug=True)

Put in a filter that excludes all rows (e.g. <0 for Number of Solar Plants)

The entire table disappears (i.e. including headers, so you can’t change the filter).

1 Like

Edit: The second part below is not completely true, it’s just a little misleading that you have to scroll down to it.

Actually, it’s even more sinister. It looks like if you set a valid filter, the last row is not visible. E.g. this should show Arizona, but it doesn’t.

hi @chubukov
thank you for reporting this. This appears to be a bug, so I added the bug to our Dash repo.