Sample dataframes#

In this notebook we make sure that our test dataframes are displayed nicely with the default itables settings.

from itables import init_notebook_mode, show
from itables.sample_dfs import get_dict_of_test_dfs

dict_of_test_dfs = get_dict_of_test_dfs()
init_notebook_mode(all_interactive=True)

empty#

show(dict_of_test_dfs["empty"])
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

No rows#

show(dict_of_test_dfs["no_rows"])
a
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

No rows one column#

show(dict_of_test_dfs["no_rows_one_column"])
a
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

No columns#

show(dict_of_test_dfs["no_columns"])
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

No columns one row#

show(dict_of_test_dfs["no_columns_one_row"])
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

bool#

show(dict_of_test_dfs["bool"])
a b c d
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

Nullable boolean#

show(dict_of_test_dfs["nullable_boolean"])
a b c d
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

int#

show(dict_of_test_dfs["int"])
a b c d e
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

Nullable integer#

show(dict_of_test_dfs["nullable_int"])
a b c
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

float#

show(dict_of_test_dfs["float"])
int inf nan math
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

str#

show(dict_of_test_dfs["str"])
text_column very_long_text_column
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

time#

show(dict_of_test_dfs["time"])
datetime timestamp timedelta
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

object#

show(dict_of_test_dfs["object"])
dict list
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

ordered_categories#

show(dict_of_test_dfs["ordered_categories"])
int
categorical_index
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

ordered_categories_in_multiindex#

show(dict_of_test_dfs["ordered_categories_in_multiindex"])
int
categorical_index integer_index
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

multiindex#

show(dict_of_test_dfs["multiindex"])
A B
1 2 1 2
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

countries#

show(dict_of_test_dfs["countries"])
region country capital longitude latitude flag
code
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

capital#

show(dict_of_test_dfs["capital"])
capital
region country
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)

complex_index#

show(dict_of_test_dfs["complex_index"])
category code data localisation data
detail code capital longitude latitude flag
region country
Loading ITables v2.2.4 from the init_notebook_mode cell... (need help?)