forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TST: fixturize series/test_alter_axes.py (pandas-dev#22526)
- Loading branch information
1 parent
3f607cc
commit 27d3bc8
Showing
2 changed files
with
88 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import pytest | ||
|
||
import pandas.util.testing as tm | ||
|
||
from pandas import Series | ||
|
||
|
||
@pytest.fixture | ||
def datetime_series(): | ||
""" | ||
Fixture for Series of floats with DatetimeIndex | ||
""" | ||
s = tm.makeTimeSeries() | ||
s.name = 'ts' | ||
return s | ||
|
||
|
||
@pytest.fixture | ||
def string_series(): | ||
""" | ||
Fixture for Series of floats with Index of unique strings | ||
""" | ||
s = tm.makeStringSeries() | ||
s.name = 'series' | ||
return s | ||
|
||
|
||
@pytest.fixture | ||
def object_series(): | ||
""" | ||
Fixture for Series of dtype datetime64[ns] with Index of unique strings | ||
""" | ||
s = tm.makeObjectSeries() | ||
s.name = 'objects' | ||
return s | ||
|
||
|
||
@pytest.fixture | ||
def empty_series(): | ||
""" | ||
Fixture for empty Series | ||
""" | ||
return Series([], index=[]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters