-
-
Notifications
You must be signed in to change notification settings - Fork 317
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 <[email protected]> * add polars engine in the container/component backends Signed-off-by: cosmicBboy <[email protected]> * add tests and docs for nested types Signed-off-by: cosmicBboy <[email protected]> * fix mypy Signed-off-by: cosmicBboy <[email protected]> * fix pylint, mypy Signed-off-by: cosmicBboy <[email protected]> * handle annotated types Signed-off-by: cosmicBboy <[email protected]> * update docs Signed-off-by: cosmicBboy <[email protected]> * update nested dtype docstrings Signed-off-by: cosmicBboy <[email protected]> --------- Signed-off-by: cosmicBboy <[email protected]>
- 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.