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

Function int_frame

pandas/conftest.py:903–913  ·  view source on GitHub ↗

Fixture for DataFrame of ints with index of unique strings Columns are ['A', 'B', 'C', 'D']

()

Source from the content-addressed store, hash-verified

901# ----------------------------------------------------------------
902@pytest.fixture
903def int_frame() -> DataFrame:
904 """
905 Fixture for DataFrame of ints with index of unique strings
906
907 Columns are ['A', 'B', 'C', 'D']
908 """
909 return DataFrame(
910 np.ones((30, 4), dtype=np.int64),
911 index=Index([f"foo_{i}" for i in range(30)]),
912 columns=Index(list("ABCD")),
913 )
914
915
916@pytest.fixture

Callers

nothing calls this directly

Calls 2

DataFrameClass · 0.90
IndexClass · 0.85

Tested by

no test coverage detected