Skip to content
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

Pandas Dataframe Display Support #30

Closed
Phutoast opened this issue Aug 12, 2019 · 4 comments
Closed

Pandas Dataframe Display Support #30

Phutoast opened this issue Aug 12, 2019 · 4 comments

Comments

@Phutoast
Copy link

Hi, it would be great to have a handout that could generate/display a Dataframe table. Might be something like doc.add_dataframe(df)

@epogrebnyak
Copy link
Contributor

epogrebnyak commented Aug 12, 2019

I thought of tables too - might be a good feature!

Would doc.add_dataframe(df) need to do anything beyond doc.add_html(df.to_html())?

@Phutoast
Copy link
Author

Maybe when the table is very big, we might only show some parts of the start of the table and some parts at the end of the table (similar to jupyer notebook, when showing a big dataframe).

This might be somewhat achieved using max_rows or max_cols. More of like how we display the table itself.

But generally, doc.add_html(df.to_html()) is a good idea for a small table

@epogrebnyak
Copy link
Contributor

epogrebnyak commented Aug 12, 2019 via email

@danijar
Copy link
Owner

danijar commented Aug 12, 2019

Sounds good, I'll close this for now and add the documentation tag. We should include your one-liner in the user guide. If anybody has an actual need for more interactivity, feel free to open a new issue and we can discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants