mwouts / itables

Pandas DataFrames as Interactive DataTables
https://mwouts.github.io/itables/
MIT License
710 stars 53 forks source link

column_filters does not seem to be working when displaying Pandas Styler object #296

Open sherry151 opened 1 week ago

sherry151 commented 1 week ago

My code below:

    from itables import init_notebook_mode
    import itables.options as it_opt
    init_notebook_mode(all_interactive=True)
    it_opt.paging = False
    it_opt.scrollY = "50vh"
    it_opt.scrollCollapse = True
    it_opt.scrollX = True
    it_opt.keys = True
    it_opt.select = True
    it_opt.buttons =   ["csvHtml5", "excelHtml5",
                        {
                           "extend": "colvis",
                           "collectionLayout": "fixed columns",
                           "popoverTitle": "Column visibility control"
                        }
                    ]
    it_opt.layout={"top1": "searchBuilder", "topEnd": None}
    it_opt.column_filters="footer"

Works fine for DataFrame object but not for Styler object. Has anyone seen this happen?