-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor with_columns to with_columns_factory
Central with_columns_factory from which dataframe libraries inherit. Changes: - Use with_columns_factory to inherit from and only need to add correct dataframe types and create_merge_node method. - Refactored h_pandas.with_columns and h_polars.with_columns to inherit from it. - Added async support for pandas (not sure if it makes sense for polars) - Select=None appends all sink nodes with column types -- same as h_spark.with_columns
- Loading branch information
1 parent
801e5ce
commit c373b5d
Showing
10 changed files
with
1,810 additions
and
1,603 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 +1,8 @@ | ||
# Using with_columns with Pandas | ||
# Using with_columns with Polars | ||
|
||
We show the ability to use the familiar `with_columns` from `polars`. Supported for both `pl.DataFrame` and `pl.LazyFrame`. | ||
|
||
To see the example look at the notebook. | ||
|
||
![image info](./dag.png) | ||
![image info](./DAG_DataFrame.png) | ||
![image info](./DAG_lazy.png) |
Large diffs are not rendered by default.
Oops, something went wrong.
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.