-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor POC analysis module to use POLARS instead of pandas. FOR MAC…
…OS: you’ll need to install polars via pip install polars-lts-cpu. may have to delete, pip uninstall polars pip install polars-lts-cpu (we also use pandera[ioc,polars]
- Loading branch information
Showing
5 changed files
with
206 additions
and
179 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,11 +1,11 @@ | ||
"""Proof of concept of a data analysis module using pandera.""" | ||
|
||
import pandas as pd | ||
import polars as pl | ||
|
||
|
||
def analyse( | ||
df: pd.DataFrame, | ||
) -> pd.DataFrame: | ||
lf: pl.LazyFrame, | ||
) -> pl.LazyFrame: | ||
"""Perform analysis on the input data and return the output data.""" | ||
# Perform analysis | ||
return df | ||
return lf |
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.