Skip to content

ENH: EA._get_repr_footer #55478

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

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Conversation

jbrockmendel
Copy link
Member

isinstance(index, (DatetimeIndex, PeriodIndex, TimedeltaIndex))
and index.freq is not None
):
footer += f"Freq: {index.freqstr}"
Copy link
Member

@mroeschke mroeschke Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not possible to include this in DTA/TDA/PA so we can avoid the special casing?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im hoping to get the special casing out of here eventually, just not this pass

@mroeschke mroeschke added Output-Formatting __repr__ of pandas objects, to_string ExtensionArray Extending pandas with custom dtypes or arrays. labels Oct 11, 2023
@mroeschke mroeschke added this to the 2.2 milestone Oct 11, 2023
@mroeschke mroeschke merged commit 6786846 into pandas-dev:main Oct 11, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-get_repr_footer-2 branch October 11, 2023 17:57
gupta-paras pushed a commit to gupta-paras/pandas that referenced this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an "extra info" section to the base ExtensionArray repr
2 participants