Integrating and using Narwhals #151
Closed
OutSquareCapital
started this conversation in
Ideas
Replies: 1 comment
-
Hey @OutSquareCapital, thanks for your thoughts! We have already thought about using narwhals but actively decided against it to be able to integrate with polars as seamlessly as possible. A switch to narwhals would mean, for example, that all users would need to write narwhals expressions for rules instead of using polars expressions. Another argument is that we are currently working on validation within a lazy frame. This currently requires a custom polars plugin and, thus, ties dataframely to polars. Hence, we currently have no interest in broadening the scope of this project. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This could make dataframely more extensible but also potentially make it a generic declarative schema for anything supported by narwhals.
https://narwhals-dev.github.io/narwhals/
However this would meant a lot of refactor accross the codebase, and a whole new vision for this library (from polars to most dataframes libs).
I'm also still thinking about a way to integrate it smartly, for my own repo here for example:
https://github.com/OutSquareCapital/framelib
Happy to hear your toughts!
EDIT:
source code at:
https://github.com/OutSquareCapital/framelib/tree/master/src/framelib/_duckdb
quick example
output:
Beta Was this translation helpful? Give feedback.
All reactions