Pandas version checks

  • [x] 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/docs/dev/reference/api/pandas.io.formats.style.Styler.html#pandas.io.formats.style.Styler

Documentation problem

The attributes columns and index are not documented for the Styler class.

Suggested fix for documentation

Document those attributes.

Initially reported here in pandas-stubs : https://github.com/pandas-dev/pandas-stubs/issues/1102

Comment From: rhshadrach

cc @attack68 for awareness.

Comment From: Rishab260

take

Comment From: Rishab260

I noticed that data is used to instantiate Styler, as seen in the Styler constructor. Since columns and index are derived from data, it seems more appropriate to document them under Attributes rather than listing them as parameters.

Would love to hear your thoughts on this! @Dr-Irv @rhshadrach

Comment From: Dr-Irv

I noticed that data is used to instantiate Styler, as seen in the Styler constructor. Since columns and index are derived from data, it seems more appropriate to document them under Attributes rather than listing them as parameters.

Yes, that seems like the right thing to do.

Comment From: Rishab260

Okay, will be making the necessary changes. Thanks for your feedback @Dr-Irv