Skip to content

Latest commit

 

History

History
182 lines (124 loc) · 2.91 KB

sample_dataframes.md

File metadata and controls

182 lines (124 loc) · 2.91 KB
jupytext kernelspec
formats notebook_metadata_filter text_representation
md:myst
-jupytext.text_representation.jupytext_version
extension format_name format_version
.md
myst
0.13
display_name language name
itables
python
itables

Sample dataframes

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

import itables

dict_of_test_dfs = itables.sample_dfs.get_dict_of_test_dfs()
itables.init_notebook_mode()

empty

itables.show(dict_of_test_dfs["empty"])

No rows

itables.show(dict_of_test_dfs["no_rows"])

No rows one column

itables.show(dict_of_test_dfs["no_rows_one_column"])

No columns

itables.show(dict_of_test_dfs["no_columns"])

No columns one row

itables.show(dict_of_test_dfs["no_columns_one_row"])

bool

itables.show(dict_of_test_dfs["bool"])

Nullable boolean

itables.show(dict_of_test_dfs["nullable_boolean"])

int

itables.show(dict_of_test_dfs["int"])

Nullable integer

itables.show(dict_of_test_dfs["nullable_int"])

float

itables.show(dict_of_test_dfs["float"])

str

itables.show(dict_of_test_dfs["str"])

time

itables.show(dict_of_test_dfs["time"])

object

itables.show(dict_of_test_dfs["object"])

ordered_categories

itables.show(dict_of_test_dfs["ordered_categories"])

ordered_categories_in_multiindex

itables.show(dict_of_test_dfs["ordered_categories_in_multiindex"])

multiindex

itables.show(dict_of_test_dfs["multiindex"])

countries

:tags: [full-width]

itables.show(dict_of_test_dfs["countries"])

capital

itables.show(dict_of_test_dfs["capital"])

complex_index

:tags: [full-width]

itables.show(dict_of_test_dfs["complex_index"])

int_float_str

itables.show(dict_of_test_dfs["int_float_str"])

wide

:tags: [full-width]

itables.show(dict_of_test_dfs["wide"], maxBytes=100000, maxColumns=100, scrollX=True)

long_column_names

:tags: [full-width]

itables.show(dict_of_test_dfs["long_column_names"], scrollX=True)

duplicated_columns

itables.show(dict_of_test_dfs["duplicated_columns"])

named_column_index

itables.show(dict_of_test_dfs["named_column_index"])

big_integers

itables.show(dict_of_test_dfs["big_integers"])