-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for dask dataframes (#33)
* Add support for dask dataframes * Add first test-case This new test runs at least with pandas >= 2 * Add dask to test environments (Pandas 2.0 only) --------- Co-authored-by: Eike von Seggern <eikevons@mailbox.org>
- Loading branch information
Showing
14 changed files
with
922 additions
and
531 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Unreleased (YYYY-MM-DD) | ||
|
||
- ... | ||
- Add support for dask dataframes | ||
|
||
# 1.5.0 (2024-04-17) | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"""Pandas and dask contexts""" | ||
|
||
from dask.dataframe import DataFrame | ||
import pandas as pd | ||
|
||
from .pandas import PandasDataframeContext, S | ||
|
||
|
||
from .contexts import ( | ||
add_dunder_operators, | ||
get_obj_attr_doc, | ||
) | ||
|
||
@add_dunder_operators | ||
class DaskDataframeContext(PandasDataframeContext): | ||
wrapped_cls = (pd.DataFrame, DataFrame) | ||
|
||
DF = DaskDataframeContext() |
Oops, something went wrong.