Skip to content

Fixturize tests/frame/test_indexing.py #25633

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 10 commits into from
Jun 28, 2019
11 changes: 11 additions & 0 deletions pandas/tests/frame/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,17 @@ def timezone_frame():
return df


@pytest.fixture
def uint64_frame():
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of this can you just use the mixed_int_frame (maybe even add a column to it if needed)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, not changing the semantics of tests here. Just translating.

Fixture for DataFrame with uint64 values

Columns are ['A', 'B']
"""
return DataFrame({'A': np.arange(3), 'B': [2**63, 2**63 + 5, 2**63 + 10]},
dtype=np.uint64)


@pytest.fixture
def simple_frame():
"""
Expand Down
Loading