LengthMenu

LengthMenu#

Select how many entries should appear at once in the table with either the lengthMenu argument of the show function, or with the global option itables.options.lengthMenu. Use pageLength to set the default page length:

import itables

itables.init_notebook_mode()
df = itables.sample_dfs.get_countries(html=False)
itables.show(df, lengthMenu=[2, 5, 10, 20, 50], pageLength=5)
Loading ITables v2.4.2 from the init_notebook_mode cell... (need help?)