Skip to content

CLN: test_ewm_rolling_consistency.py #37951

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
Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 0 additions & 147 deletions pandas/tests/window/common.py

This file was deleted.

38 changes: 9 additions & 29 deletions pandas/tests/window/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

@pytest.fixture(params=[True, False])
def raw(request):
"""raw keyword argument for rolling.apply"""
return request.param


Expand Down Expand Up @@ -274,43 +275,22 @@ def consistency_data(request):
return request.param


def _create_arr():
"""Internal function to mock an array."""
def _create_series():
"""Internal function to mock Series."""
arr = np.random.randn(100)
locs = np.arange(20, 40)
arr[locs] = np.NaN
return arr


def _create_rng():
"""Internal function to mock date range."""
rng = bdate_range(datetime(2009, 1, 1), periods=100)
return rng


def _create_series():
"""Internal function to mock Series."""
arr = _create_arr()
series = Series(arr.copy(), index=_create_rng())
series = Series(arr, index=bdate_range(datetime(2009, 1, 1), periods=100))
return series


def _create_frame():
"""Internal function to mock DataFrame."""
rng = _create_rng()
return DataFrame(np.random.randn(100, 10), index=rng, columns=np.arange(10))


@pytest.fixture
def nan_locs():
"""Make a range as loc fixture."""
return np.arange(20, 40)


@pytest.fixture
def arr():
"""Make an array as fixture."""
return _create_arr()
return DataFrame(
np.random.randn(100, 10),
index=bdate_range(datetime(2009, 1, 1), periods=100),
columns=np.arange(10),
)


@pytest.fixture
Expand Down
19 changes: 0 additions & 19 deletions pandas/tests/window/moments/conftest.py

This file was deleted.

Loading