Show DataFrame or Series Type#
You can display the type of the DataFrame or Series by setting the option
show_df_type to True. By default, this option is set to False.
The type information appears below the table and shows the library and class name
(e.g., pandas.DataFrame, polars.Series).
import itables
itables.init_notebook_mode()
You can change this behavior globally with:
itables.options.show_df_type = True
Or locally by passing show_df_type=True to the show function:
itables.show(itables.sample_dfs.get_countries(), show_df_type=True)
Loading ITables v2.8.1 from the init_notebook_mode cell...
(need help?)
|