DOC: Sticky Headers in Table Visualization is broken in v1.5.0

This issue has been tracked since 2022-09-19.

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/pandas-docs/version/1.5.0/user_guide/style.html#Sticky-Headers

Documentation problem

Here is how the DataFrame looks in v1.5.0 documentation:
image

Here is how it looked in v1.4.4 documentation:
image

I'm using Firefox 104

Suggested fix for documentation

It seems that pydata-sphinx-theme.css is applying width: fit-content; to all tables. This should be overridden for this wide table.

This seems to be related to #48285

WooilKim wrote this answer on 2022-09-20

Let me handle this.

WooilKim wrote this answer on 2022-09-20

take

WooilKim wrote this answer on 2022-09-20

I have a question.
Where can I find the document file in the repository?
I can not find it in docs directory.
Thanks.

attack68 wrote this answer on 2022-09-21

pandas/docs/source/user_guide/style.ipynb

attack68 wrote this answer on 2022-09-21

It seems like the whole notebook is mishandled, not just set_sticky.

WooilKim wrote this answer on 2022-09-21

@attack68
Thanks. I agree.

WooilKim wrote this answer on 2022-09-22

@attack68
I'm in hard time finding the css "fit-content". I think it is not in the style.ipynb file.
Can you give me an advice which file should I look into?
Thanks.

More Details About Repo
Owner Name pandas-dev
Repo Name pandas
Full Name pandas-dev/pandas
Language Python
Created Date 2010-08-24
Updated Date 2022-10-04
Star Count 35430
Watcher Count 1120
Fork Count 15089
Issue Count 3589

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date