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

Function float_frame

pandas/conftest.py:917–927  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

915
916@pytest.fixture
917def float_frame() -> DataFrame:
918 """
919 Fixture for DataFrame of floats with index of unique strings
920
921 Columns are ['A', 'B', 'C', 'D'].
922 """
923 return DataFrame(
924 np.random.default_rng(2).standard_normal((30, 4)),
925 index=Index([f"foo_{i}" for i in range(30)]),
926 columns=Index(list("ABCD")),
927 )
928
929
930@pytest.fixture

Callers

nothing calls this directly

Calls 2

DataFrameClass · 0.90
IndexClass · 0.85

Tested by

no test coverage detected