Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Add option to display dtypes below column headers #43875

Closed
joaomacalos opened this issue Oct 4, 2021 · 0 comments · Fixed by #46105
Closed

ENH: Add option to display dtypes below column headers #43875

joaomacalos opened this issue Oct 4, 2021 · 0 comments · Fixed by #46105
Labels
Enhancement IO Data IO issues that don't fit into a more specific label Styler conditional formatting using DataFrame.style
Milestone

Comments

@joaomacalos
Copy link

Is your feature request related to a problem?

My feature request is not related to a problem per se, but it can help users to spot type bugs and is not visually noisy.

I wish there could be a way to change the Pandas str and html representation to show the dtypes of columns below the headers (like R's tibble or Julia's DataFrame).

Describe the solution you'd like

I imagine that the solution would involve setting an option, e.g. pd.set_option("display_dtypes", True).

API breaking implications

As far as I understand, adding such option wouldn't break the API.

Describe alternatives you've considered

I could try to write something in this direction, but honestly I don't even know where to find the relevant source code to start. If someone could point me the direction I would be happy to try it out.

@joaomacalos joaomacalos added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 4, 2021
@attack68 attack68 added IO Data IO issues that don't fit into a more specific label Styler conditional formatting using DataFrame.style and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Oct 4, 2021
@jreback jreback added this to the 1.5 milestone Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO Data IO issues that don't fit into a more specific label Styler conditional formatting using DataFrame.style
Projects
None yet
3 participants