Col Reorder

Col Reorder#

Added in version 2.8.1.

ColReorder is a DataTables extension that lets users drag and drop column headers to reorder the table columns interactively.

Use colReorder=True to enable column reordering:

import itables

itables.init_notebook_mode()

df = itables.sample_dfs.get_countries()

itables.show(df, colReorder=True)
Loading ITables v2.8.1 from the init_notebook_mode cell... (need help?)

As always, you can set this option globally with:

itables.options.colReorder = True

or by adding

colReorder = true

to your itables.toml configuration file.