# Why do my pandas dataframe columns always align to the left?

**URL:** <https://discourse.jupyter.org/t/why-do-my-pandas-dataframe-columns-always-align-to-the-left/21585>\
**Category:** General\
**Tags:** help-wanted\
**Created:** [September 23, 2023, 10:54pm UTC](https://discourse.jupyter.org/t/why-do-my-pandas-dataframe-columns-always-align-to-the-left/21585 "2023-09-23T22:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_H](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/t_h/32/11113_2.png) [@T\_H](https://discourse.jupyter.org/u/T_H)\
**Post date:** [September 23, 2023, 10:54pm UTC](https://discourse.jupyter.org/t/why-do-my-pandas-dataframe-columns-always-align-to-the-left/21585/1 "2023-09-23T22:54:48Z")

</div>

Hello,

I am very new to Jupyter Notebook.

I believe that pandas aligns data frame columns to the right by default. But in my Jupyter Notebook, it is always left-aligned, which I find a little bit difficult to see numbers and I want to fix it. I didn’t do any setup for pandas or my Jupyter Notebook except changing the theme to dark mode (my setting: t -t onedork -f source -fs 11 -ofs 11 -cellw 88% -T). I would appreciate it if anyone could give me some advice. Thank you!

---

<div class="post-metadata">

**Author:** ![T\_H](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/t_h/32/11113_2.png) [@T\_H](https://discourse.jupyter.org/u/T_H)\
**Post date:** [September 25, 2023, 9:37pm UTC](https://discourse.jupyter.org/t/why-do-my-pandas-dataframe-columns-always-align-to-the-left/21585/2 "2023-09-25T21:37:17Z")

</div>

Updates:  
I couldn’t figure out why it was happening. I tested my Jupyter Notebook on both Chrome and Firefox. It seemed that my theme setting was causing the issue of pandas data frame alignment. So I reset the theme and now it is ok. Thank you.
