Skip to content

TST: string representation of IntervalIndex #38242

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 4 commits into from
Dec 3, 2020

Conversation

arw2019
Copy link
Member

@arw2019 arw2019 commented Dec 2, 2020

Picking up #36628

@jreback jreback added Interval Interval data type Output-Formatting __repr__ of pandas objects, to_string labels Dec 2, 2020
@@ -114,6 +114,25 @@ def test_loc_getitem_frame(self):
with pytest.raises(KeyError, match=r"^\[10\]$"):
df.loc[[10, 4]]

def test_string_representation(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

move to pandas/tests/indexes/interval/test_formats.py: there are similar tests (search for repr)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@jreback jreback added this to the 1.2 milestone Dec 3, 2020
@jreback jreback merged commit 8ac84fa into pandas-dev:master Dec 3, 2020
@jreback
Copy link
Contributor

jreback commented Dec 3, 2020

thanks @arw2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IntervalIndex raises TypeError on PrettyPrint
2 participants