-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inf loading tables for particular polars
data frame
#291
Comments
Do you mean it shows nothing after the message "Loading ITables v2.1.1 from the init_notebook_mode" ? |
Yes, that's what it shows. Not sure that the size is the probl. since the DF of equal size before a bunch of transformations shows w/o a problem. Also |
Hi @jmakov , thanks for reporting this. Possibly indeed that's the size of the HTML table that is a problem. What browser are you using? Would you have a simple reproducible example for how to generate a similar large table? Also, did you change |
FF 127.0. I'm not sure how to reproduce it without burning a lot of time. I have a lazy frame lf1 of shape (434881, 283) that can be displayed without a problem, but after I do some operations on it to get lf2, the shape the same (424882, 298) but can't display it. I did try to use edit: seems to be a probl connected with the |
I see. I am also aware of another issue at the moment with
and check whether the output (a two-dimensional array) looks "sane" on your problematic DF? By "sane" I mean that it should contain only simple types (ints, floats, str) that can be transferred more or less verbatim to javascript. Or, if you're familiar with html, you could use
Please let me know what you find! |
I'm only using polars.UInt64, Int64 or Float32, no complicated/nested structs. from itables import javascript
javascript.datatables_rows(lf.collect().sample(100))
# '[[BigInt("1666767918216000000"), 1699300000000, 0.BigInt("9510565400123596"), -0.BigInt("30901700258255005") ...
lf.dytpes
# [UInt64, Int64, Float32, Float32, .. (and 300 other Float32 cols) |
Thanks @jmakov , that's very helpful. I have been able to reproduce the problem and I think I have a fix. Would you mind to try the PR above? Detailed instructions will come with the PR. Thanks! |
Sure, I can try if I have instructions how to install/build the thing :), no problem! |
@mwouts tried and it works. Thank you for the quick fix! |
Awesome, thank you for keeping me posted! I'll release that fix then. |
I have a data frame with 300 columns and 1000 rows. When trying to display the data frame, it says "Loading ITables v2.1.1 from the
init_notebook_mode
".The first thing after imports I do is
itables.init_notebook_mode(all_interactive=True)
and can display any other DF normally. Not sure how to debug the problem.The text was updated successfully, but these errors were encountered: