-
Notifications
You must be signed in to change notification settings - Fork 140
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
Printing to Terminal #509
Comments
Hello. Welcome to Daru.
daru/lib/daru/formatters/table.rb Lines 16 to 17 in d17887e
|
I would be interested in contributing to this, I have briefly looked into the code for inspect. How would you envision I add a best fit printing function? It seems pretty_print is a missing method atm?
|
|
Thanks for reporting the issue. You can see the examples in IRuby notebook here. @reedjosh , do you want to see all the colums (or all the rows)? I see that Pandas in Python shell and
|
Pandas
Daru
The data I usually see does not fits in column widths. For example |
Thanks @kojix2 for letting me know this point. Yes! It should be adjusted and have option for setting the max width of the all the columns. |
Yes, Pandas auto-adjusts width, and Pandas prints without first printing the object. I use pandas to display data on the command line quite often. For now, I've setup to use tj/terminal-table for my final output. It works well enough. Should I get around to it, I will work on this, but I won't be able to do so anytime soon. Thanks all for the consideration and work you've done to build DARU. It's much nicer than manually manipulating data!! : ) |
Thanks @reedjosh for letting us know. Surely table structure will be improved in near future. |
Hey, I just came to Daru from Pandas.
I write a lot of scripts at work that report out in the terminal. With Pandas I simply
print(df)
and possibly change a few features likemax_colwidth=50
.I can't seem to nicely print a Daru DataFrame to the terminal. Inspect is the closest I seem to be able to find, but then the columns are all the same size (as opposed to best fit) and the object type is printed too.
puts df
just seems to put the type, and so doesputs df.to_s
Thanks for your guidance!
The text was updated successfully, but these errors were encountered: