Search Panes

Search Panes#

SearchPanes is an extension that lets you select rows based on unique values. In the example below we have activated the cascade filtering through the searchPanes.cascadePanes argument.

Note that, in Jupyter, the searchPanes.layout argument is required (otherwise the search panes are too wide).

import itables

itables.init_notebook_mode()

df = itables.sample_pandas_dfs.get_countries(climate_zone=True)

itables.show(
    df.reset_index(),
    layout={"top1": "searchPanes"},
    searchPanes={"layout": "columns-3", "cascadePanes": True, "columns": [1, 6, 7]},
)
code region country capital longitude latitude climate_zone hemisphere
AWLatin America & Caribbean ArubaOranjestad-70.01670012.516700TropicalNorth
AFSouth AsiaAfghanistanKabul69.17610034.522800Sub-tropicalNorth
AOSub-Saharan Africa AngolaLuanda13.242000-8.811550TropicalSouth
ALEurope & Central AsiaAlbaniaTirane19.81720041.331700TemperateNorth
ADEurope & Central AsiaAndorraAndorra la Vella1.52180042.507500TemperateNorth
AEMiddle East & North AfricaUnited Arab EmiratesAbu Dhabi54.37050024.476400Sub-tropicalNorth
ARLatin America & Caribbean ArgentinaBuenos Aires-58.417300-34.611800Sub-tropicalSouth
AMEurope & Central AsiaArmeniaYerevan44.50900040.159600TemperateNorth
ASEast Asia & PacificAmerican SamoaPago Pago-170.691000-14.284600TropicalSouth
AGLatin America & Caribbean Antigua and BarbudaSaint John's-61.84560017.117500TropicalNorth
(198 more rows not shown)

Warning

When searching, please keep in mind that ITables will downsample your table if it is larger than maxBytes, so you might not see the full dataset - pay attention to the downsampling message at the bottom left of the table.