polars
polars copied to clipboard
feat(python): Change default number of rows printed in Notebooks for DataFrame/Series to 10
Closes https://github.com/pola-rs/polars/issues/14515
Changes
- For DataFrames: changed from 25 to 10.
- For Series: changed from 25 to ~20~ 10 also.
- Fix display when row limit is an odd number
~I guess we could also do 10 rows for both?~
I guess we could also do 10 rows for both?
imo 10 is nice and would be consistent.
Also might have found another formatting inconsistency: 🤔
df = pl.DataFrame({"a": pl.int_range(0, 100, eager=True)})
ser = df.get_column("a")
imo 10 is nice and would be consistent.
Let's go for that. Too much vertical scrolling in a Notebook is annoying.
Also might have found another formatting inconsistency: 🤔
There are some off-by-one errors... I think I may address the HTML ones here actually if I have time, otherwise it can be a separate PR.