How are pandas DataFrames rendered as tables in Project Jupyter's Notebook

24 views
Skip to first unread message

TheShermanTanker

unread,
May 23, 2024, 10:07:09 AMMay 23
to PyData
Hi all,

I'd like to write my own code from scratch that shows data in a table in Project Jupyter's Notebooks. I'm aware that pandas has a DataFrame class, which when used as an expression becomes a table in notebook. What I'd like to know is - How does DataFrame render itself as a table in notebook? I'd be happy to be shown the source code in DataFrame that is responsible for this rendering in notebook, so I can implement it on my own

best regards,
Julian

Josh Friedlander

unread,
May 23, 2024, 10:19:45 AMMay 23
to pyd...@googlegroups.com
Try df.to_html()

--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pydata/31cbf5f7-ee71-432d-9d5a-ff6f88a1719cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages