-
-
Notifications
You must be signed in to change notification settings - Fork 74
Filtering doesn't work if column name has space [Sponsored: Due March 1] #224
Comments
Thanks for reporting. |
Symbols (including periods and parentheses) seem to cause trouble as well. |
Yes I am seeing the same problem too. |
When this is fixed, let's report back to this community thread: https://community.plot.ly/t/dash-table-filtering-not-working-with-spaces-in-header/18036 |
This is still broken for me on Dash 3.6.0
If I apply this styline in the layout with |
Reviewing this in Dash v1.0.1 (dash-table==4.0.1), this seems to be working fine. The syntax has changed a bit with the v1.0 migration. This syntax should now work:
Also reviewing in Dash v0.43 (dash-table==3.7.0), this also seems to be working fine, albeit with the old syntax.
Note: I just realized I wrote this using the JS interface of the table, which does not impact functionality but will need a slight adjustments for Python usage. |
@philspbr Closing this as fixed but do not hesitate to open a new issue with a minimum reproducible example if you encounter this problem again. |
Filtering on columns that contain a space in their name results in the filter string being considered as invalid.
After looking at the docs, it most likely is that the filter parser is being confused when turning the filter string into
<column name> <operator> <value>
Temporary fix is, of course, removing spaces from column names.
The text was updated successfully, but these errors were encountered: