Often, when we want to display the content of a Pandas dataframe in Jupyter Notebook, we end up with the result that fits on the screen but has some hidden columns.
Isn’t it annoying? What do we do when it happens? I used to save the data frame to file and open it in Excel or select the one row I wanted to see and transpose the data frame to have all of the columns visible as rows (that works until you hit the limit of rows that can be displayed).
Hidden columns
Get $80/Year of AI Expertise. For Free.
"I've learned a lot already from your blog." — A Substack reader who has pledged $80 per year for this content.
I help SaaS startups with customer-facing LLMs stop AI hallucinations before they spark compliance nightmares or customer churn.
Why join?
Straight-to-the-point articles on measuring and fixing hallucinations.
Playbooks for advanced RAG tuning, guardrails, and evaluation you can copy-paste.
Case studies from real deployments, not "Hello World" demos.
Fortunately, there is a better way. We can specify the maximum number of columns we want to see to some large value and get the friendly output in Jupyter without additional hassle.