-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Narwhals to support more DataFrame types
Remove support for Python 3.7
- Loading branch information
Showing
15 changed files
with
399 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ parts: | |
chapters: | ||
- file: sample_dataframes | ||
- file: polars_dataframes | ||
- file: modin_dataframes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
--- | ||
jupytext: | ||
formats: md:myst | ||
notebook_metadata_filter: -jupytext.text_representation.jupytext_version | ||
text_representation: | ||
extension: .md | ||
format_name: myst | ||
format_version: 0.13 | ||
kernelspec: | ||
display_name: itables | ||
language: python | ||
name: itables | ||
--- | ||
|
||
# Modin DataFrames | ||
|
||
In this notebook we make sure that our test dataframes are displayed nicely with the default `itables` settings. | ||
|
||
```{code-cell} | ||
from itables import init_notebook_mode, show | ||
from itables.sample_dfs import get_dict_of_test_modin_dfs | ||
dict_of_test_dfs = get_dict_of_test_modin_dfs() | ||
init_notebook_mode(all_interactive=True) | ||
``` | ||
|
||
## empty | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["empty"]) | ||
``` | ||
|
||
## No rows | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["no_rows"]) | ||
``` | ||
|
||
## No rows one column | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["no_rows_one_column"]) | ||
``` | ||
|
||
## No columns | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["no_columns"]) | ||
``` | ||
|
||
## No columns one row | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["no_columns_one_row"]) | ||
``` | ||
|
||
## bool | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["bool"]) | ||
``` | ||
|
||
## Nullable boolean | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["nullable_boolean"]) | ||
``` | ||
|
||
## int | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["int"]) | ||
``` | ||
|
||
## Nullable integer | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["nullable_int"]) | ||
``` | ||
|
||
## float | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["float"]) | ||
``` | ||
|
||
## str | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["str"]) | ||
``` | ||
|
||
## time | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["time"]) | ||
``` | ||
|
||
## object | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["object"]) | ||
``` | ||
|
||
## ordered_categories | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["ordered_categories"]) | ||
``` | ||
|
||
## ordered_categories_in_multiindex | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["ordered_categories_in_multiindex"]) | ||
``` | ||
|
||
## countries | ||
|
||
```{code-cell} | ||
:tags: [full-width] | ||
show(dict_of_test_dfs["countries"]) | ||
``` | ||
|
||
## capital | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["capital"]) | ||
``` | ||
|
||
## int_float_str | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["int_float_str"]) | ||
``` | ||
|
||
## wide | ||
|
||
```{code-cell} | ||
:tags: [full-width] | ||
show(dict_of_test_dfs["wide"], maxBytes=100000, maxColumns=100, scrollX=True) | ||
``` | ||
|
||
## long_column_names | ||
|
||
```{code-cell} | ||
:tags: [full-width] | ||
show(dict_of_test_dfs["long_column_names"], scrollX=True) | ||
``` | ||
|
||
## named_column_index | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["named_column_index"]) | ||
``` | ||
|
||
## big_integers | ||
|
||
```{code-cell} | ||
show(dict_of_test_dfs["big_integers"]) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.