-
Notifications
You must be signed in to change notification settings - Fork 105
Description
Description
Hey there 👋🏼
As you might have guessed from a few PRs I submitted, I started to get more comfortable with the codebase and spotted a few things while trying to see how Narwhals would look like in great-tables.
I have already something which is working in the current status: main...FBruzzesi:great-tables:feat/narwhalify-tbl-data-module
It's a bit of a messy branch, and I would definitely clean it up before opening a PR.
However I have a couple questions before finalizing the work:
- Would this be something you are interested in and in scope in the first place? 😂
- Would you prefer an incremental approach, or a end-to-end change/adoption?
For the incremental approach there is a "lazy" way of doing it, which is wrapping most functionalities in the _tbl_data.py
module. However this would actually end up in many additional calls (from_native
/to_native
), while the final goal would be to convert once to narwhals when ingesting and keeping the data like that as long as possible.
On the other hand, there are some modules which can be "narwhalified" independently (such as _data_color/base.py
).
Still the main advantages will be noticeable once the full changes are in (I know it's not a perfect metric, but the branch above has almost a -500 net lines of code and it avoids many conversions)
Last but not least, if you decide to move forward, I would suggest to support from narwhals 2.0: I recently fixed a couple of bugs we had, spotted while working on such branch.
Let me know your thoughts (I am also happy to have a call if needed)