MCPcopy
hub / github.com/pandas-dev/pandas / object_series

Function object_series

pandas/conftest.py:814–820  ·  view source on GitHub ↗

Fixture for Series of dtype object with Index of unique strings

()

Source from the content-addressed store, hash-verified

812
813@pytest.fixture
814def object_series() -> Series:
815 """
816 Fixture for Series of dtype object with Index of unique strings
817 """
818 data = [f"foo_{i}" for i in range(30)]
819 index = Index([f"bar_{i}" for i in range(30)])
820 return Series(data, index=index, name="objects", dtype=object)
821
822
823@pytest.fixture

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
IndexClass · 0.85

Tested by

no test coverage detected