-
Notifications
You must be signed in to change notification settings - Fork 141
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
Setting the Options. Maximum number of rows to display #502
Comments
Yes! It makes sense. There was a similar discussion happened #476 , please have a look. |
My first idea is like Daru.configure do |c|
c.max_rows = 100
c.max_columns = nil
end But I think this is good too. Daru::DataFrame.inspect_max_rows = 10
Daru::DataFrame.inspect_max_colms = nil
Daru::Vector.inspect_max_rows = nil |
Thanks for letting me this. Yes! We can have configuration as well, where all these default things can be set. |
I realized that setting options alone was not enough for me.
|
Thanks for suggestion @kojix2 . I think we should have global option to set the maximum number of rows to display as well as WDYT? |
Daru's data frame displays up to 30 rows.
I think the default threshold of 30 is reasonable in most cases.
However, when processing messy data, I often want to see 100 lines or more with my own eyes.
The threshold is defined as default values for the arguments here.
daru/lib/daru/dataframe.rb
Line 2094 in d17887e
So, you can change the threshold with the following patch.
This is not a cool way.
I want a better way to configure Daru.
The text was updated successfully, but these errors were encountered: