|
| 1 | +--- |
| 2 | +jupytext: |
| 3 | + formats: md:myst |
| 4 | + notebook_metadata_filter: -jupytext.text_representation.jupytext_version |
| 5 | + text_representation: |
| 6 | + extension: .md |
| 7 | + format_name: myst |
| 8 | + format_version: 0.13 |
| 9 | +kernelspec: |
| 10 | + display_name: itables |
| 11 | + language: python |
| 12 | + name: itables |
| 13 | +--- |
| 14 | + |
| 15 | +# Sample dataframes |
| 16 | + |
| 17 | +In this notebook we make sure that our test [Ibis](https://ibis-project.org/) dataframes are displayed nicely with the default `itables` settings. |
| 18 | + |
| 19 | +```{code-cell} |
| 20 | +from itables import init_notebook_mode, show |
| 21 | +from itables.sample_dfs import get_dict_of_test_ibis_dfs |
| 22 | +
|
| 23 | +dict_of_test_dfs = get_dict_of_test_ibis_dfs() |
| 24 | +init_notebook_mode(all_interactive=True) |
| 25 | +``` |
| 26 | + |
| 27 | +## empty |
| 28 | + |
| 29 | +```{code-cell} |
| 30 | +show(dict_of_test_dfs["empty"]) |
| 31 | +``` |
| 32 | + |
| 33 | +## No rows |
| 34 | + |
| 35 | +```{code-cell} |
| 36 | +show(dict_of_test_dfs["no_rows"]) |
| 37 | +``` |
| 38 | + |
| 39 | +## No rows one column |
| 40 | + |
| 41 | +```{code-cell} |
| 42 | +show(dict_of_test_dfs["no_rows_one_column"]) |
| 43 | +``` |
| 44 | + |
| 45 | +## No columns |
| 46 | + |
| 47 | +```{code-cell} |
| 48 | +show(dict_of_test_dfs["no_columns"]) |
| 49 | +``` |
| 50 | + |
| 51 | +## No columns one row |
| 52 | + |
| 53 | +```{code-cell} |
| 54 | +show(dict_of_test_dfs["no_columns_one_row"]) |
| 55 | +``` |
| 56 | + |
| 57 | +## bool |
| 58 | + |
| 59 | +```{code-cell} |
| 60 | +show(dict_of_test_dfs["bool"]) |
| 61 | +``` |
| 62 | + |
| 63 | +## Nullable boolean |
| 64 | + |
| 65 | +```{code-cell} |
| 66 | +show(dict_of_test_dfs["nullable_boolean"]) |
| 67 | +``` |
| 68 | + |
| 69 | +## int |
| 70 | + |
| 71 | +```{code-cell} |
| 72 | +show(dict_of_test_dfs["int"]) |
| 73 | +``` |
| 74 | + |
| 75 | +## Nullable integer |
| 76 | + |
| 77 | +```{code-cell} |
| 78 | +show(dict_of_test_dfs["nullable_int"]) |
| 79 | +``` |
| 80 | + |
| 81 | +## float |
| 82 | + |
| 83 | +```{code-cell} |
| 84 | +show(dict_of_test_dfs["float"]) |
| 85 | +``` |
| 86 | + |
| 87 | +## str |
| 88 | + |
| 89 | +```{code-cell} |
| 90 | +show(dict_of_test_dfs["str"]) |
| 91 | +``` |
| 92 | + |
| 93 | +## time |
| 94 | + |
| 95 | +```{code-cell} |
| 96 | +show(dict_of_test_dfs["time"]) |
| 97 | +``` |
| 98 | + |
| 99 | +## object |
| 100 | + |
| 101 | +```{code-cell} |
| 102 | +show(dict_of_test_dfs["object"]) |
| 103 | +``` |
| 104 | + |
| 105 | +## ordered_categories |
| 106 | + |
| 107 | +```{code-cell} |
| 108 | +show(dict_of_test_dfs["ordered_categories"]) |
| 109 | +``` |
| 110 | + |
| 111 | +## ordered_categories_in_multiindex |
| 112 | + |
| 113 | +```{code-cell} |
| 114 | +show(dict_of_test_dfs["ordered_categories_in_multiindex"]) |
| 115 | +``` |
| 116 | + |
| 117 | +## multiindex |
| 118 | + |
| 119 | +```{code-cell} |
| 120 | +show(dict_of_test_dfs["multiindex"]) |
| 121 | +``` |
| 122 | + |
| 123 | +## countries |
| 124 | + |
| 125 | +```{code-cell} |
| 126 | +:tags: [full-width] |
| 127 | +
|
| 128 | +show(dict_of_test_dfs["countries"]) |
| 129 | +``` |
| 130 | + |
| 131 | +## capital |
| 132 | + |
| 133 | +```{code-cell} |
| 134 | +show(dict_of_test_dfs["capital"]) |
| 135 | +``` |
| 136 | + |
| 137 | +## complex_index |
| 138 | + |
| 139 | +```{code-cell} |
| 140 | +:tags: [full-width] |
| 141 | +
|
| 142 | +show(dict_of_test_dfs["complex_index"]) |
| 143 | +``` |
| 144 | + |
| 145 | +## int_float_str |
| 146 | + |
| 147 | +```{code-cell} |
| 148 | +show(dict_of_test_dfs["int_float_str"]) |
| 149 | +``` |
| 150 | + |
| 151 | +## wide |
| 152 | + |
| 153 | +```{code-cell} |
| 154 | +:tags: [full-width] |
| 155 | +
|
| 156 | +show(dict_of_test_dfs["wide"], maxBytes=100000, maxColumns=100, scrollX=True) |
| 157 | +``` |
| 158 | + |
| 159 | +## long_column_names |
| 160 | + |
| 161 | +```{code-cell} |
| 162 | +:tags: [full-width] |
| 163 | +
|
| 164 | +show(dict_of_test_dfs["long_column_names"], scrollX=True) |
| 165 | +``` |
| 166 | + |
| 167 | +## duplicated_columns |
| 168 | + |
| 169 | +```{code-cell} |
| 170 | +show(dict_of_test_dfs["duplicated_columns"]) |
| 171 | +``` |
| 172 | + |
| 173 | +## named_column_index |
| 174 | + |
| 175 | +```{code-cell} |
| 176 | +show(dict_of_test_dfs["named_column_index"]) |
| 177 | +``` |
| 178 | + |
| 179 | +## big_integers |
| 180 | + |
| 181 | +```{code-cell} |
| 182 | +show(dict_of_test_dfs["big_integers"]) |
| 183 | +``` |
0 commit comments