Length Menu

Length Menu#

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()
itables.show(df, lengthMenu=[2, 5, 10, 20, 50], pageLength=5)
region country capital longitude latitude
code
AWLatin America & Caribbean ArubaOranjestad-70.01670012.516700
AFSouth AsiaAfghanistanKabul69.17610034.522800
AOSub-Saharan Africa AngolaLuanda13.242000-8.811550
ALEurope & Central AsiaAlbaniaTirane19.81720041.331700
ADEurope & Central AsiaAndorraAndorra la Vella1.52180042.507500
(203 more rows not shown)