Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refector the polars type engine to use LazyFrames, add support for Ne…
…sted types (#1526) * refactor polars type engine for LazyFrames, add nested types Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * add polars engine in the container/component backends Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * add tests and docs for nested types Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * fix mypy Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * fix pylint, mypy Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * handle annotated types Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * update docs Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> * update nested dtype docstrings Signed-off-by: cosmicBboy <niels.bantilan@gmail.com> --------- Signed-off-by: cosmicBboy <niels.bantilan@gmail.com>
- Loading branch information
1 parent
a6270df
commit 7d1b1ba
Showing
17 changed files
with
571 additions
and
369 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
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
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
"""Pandera type engines.""" | ||
|
||
from pandera.engines.utils import pydantic_version | ||
import pydantic | ||
|
||
from packaging import version | ||
|
||
|
||
def pydantic_version(): | ||
"""Return the pydantic version.""" | ||
|
||
return version.parse(pydantic.__version__) | ||
|
||
|
||
PYDANTIC_V2 = pydantic_version().release >= (2, 0, 0) |
Oops, something went wrong.