Skip to content

ENH: Show data types under column names #45813

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

Closed
pwwang opened this issue Feb 4, 2022 · 4 comments
Closed

ENH: Show data types under column names #45813

pwwang opened this issue Feb 4, 2022 · 4 comments
Labels
Closing Candidate May be closeable, needs more eyeballs Duplicate Report Duplicate issue or pull request Enhancement

Comments

@pwwang
Copy link

pwwang commented Feb 4, 2022

Is your feature request related to a problem?

Describe the solution you'd like

Data types are shown directly in R under column names:

# A tibble: 4 × 2
      x     y
  <dbl> <int>
1     1     1
2     1     2
3     2     3
4     2     4

Wish pandas could have this feature as well.

API breaking implications

Describe alternatives you've considered

https://github.com/pwwang/pdtypes

Turn this into
terminal_without_pdtypes terminal_with_pdtypes
terminal_without_pdtypes_gf terminal_with_pdtypes_gf
notebook_without_pdtypes notebook_with_pdtypes
notebook_without_pdtypes_gf notebook_with_pdtypes_gf

Just wondering if this is a welcome to become a PR.

Additional context

@pwwang pwwang added Enhancement Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 4, 2022
@jreback
Copy link
Contributor

jreback commented Feb 4, 2022

we already have df.dtypes

not sure this adds anything here

@attack68
Copy link
Contributor

attack68 commented Feb 4, 2022

duplicate of #43875

@attack68
Copy link
Contributor

attack68 commented Feb 4, 2022

we already have df.dtypes

not sure this adds anything here

I think seeing dtypes in context of the data is useful. Sometimes when importing big data the column name is not as informative as seeing the structure of the data and column name together, and then checking the dtype.

@attack68 attack68 added Duplicate Report Duplicate issue or pull request and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Feb 4, 2022
@phofl
Copy link
Member

phofl commented Feb 6, 2022

Closing as duplicate then @attack68 ?

@phofl phofl added the Closing Candidate May be closeable, needs more eyeballs label Feb 6, 2022
@attack68 attack68 closed this as completed Feb 6, 2022
@phofl phofl added this to the No action milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closing Candidate May be closeable, needs more eyeballs Duplicate Report Duplicate issue or pull request Enhancement
Projects
None yet
Development

No branches or pull requests

4 participants