I have looked through the forum and github but haven’t found anything regarding this issue. My apologies if I have missed it.
The filtering function of the data tables does not seem to work if the column name contains spaces:
import dash
import dash_table
import dash_html_components as html
import pandas as pd
vals = list('aabbbcc')
df = pd.DataFrame({'nospace': vals, 'yes space ': vals})
app = dash.Dash(__name__)
app.layout = html.Div([
dash_table.DataTable(
id='table',
columns=[
{"name": i, "id": i, "deletable": True} for i in df.columns
],
data=df.to_dict("rows"),
filtering=True,
selected_rows=[],
),
])
if __name__ == '__main__':
app.run_server(debug=True)
It is trivial to remove the spaces, but I figured I would post in case anyone knew of a workaround, or perhaps I am doing something wrong without realizing it.
Thanks for all the great work!