Open wpritom opened 1 month ago
Hi @wpritom , thanks for reporting this! Yes that's right currently ITables only supports Pandas and Polars DataFrames.
Can you convert df
back to a Pandas DataFrame before calling show, for now at least?
You can leave this issue open so that I look to add support for Modin DataFrames when time permits. Thanks.
Hi @mwouts - would you be open to using Narwhals in ITables?
I think this could simplify some of the code, e.g. this, and would also give you support for pandas / Polars / Modin / cuDF / PyArrow (and any other Narwhals-compatible eager dataframe), without making any of them required dependencies
Happy to make a PR if you'd be interested, just gauging interest first
Hey @MarcoGorelli , Narwhals sounds like a great package indeed! And sure I would love to provide support for more dataframe types, see for instance #217 (pending) where I started working on Ibis support.
I would love to see how that part of the code would look like with Narwhals! The parts that we would need to rewrite that I am currently thinking of (there might be more) are
Looking forward to hearing more from you!
Hi @mwouts, I'm working on this. Just so you know that we are around. (I'm a Narwhals team member, 🙂).
show()
is not working while I'm importing pandas with from modin. I'm using modin to improve pandas performance.Now
show(df, classes="display")
column showing the following error.