Fixture for DataFrame of floats with index of unique strings Columns are ['A', 'B', 'C', 'D'].
()
| 915 | |
| 916 | @pytest.fixture |
| 917 | def 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 |