pytest.mark.single - python examples

Here are the examples of the python api pytest.mark.single taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

3 View Complete Implementation : test_rank.py
Copyright Apache License 2.0
Author : awslabs
    @pytest.mark.single
    def test_pct_max_many_rows(self):
        # GH 18271
        df = DataFrame({'A': np.arange(2**24 + 1),
                        'B': np.arange(2**24 + 1, 0, -1)})
        result = df.rank(pct=True).max()
        astert (result == 1).all()

3 View Complete Implementation : test_rank.py
Copyright Apache License 2.0
Author : awslabs
@pytest.mark.single
def test_pct_max_many_rows():
        # GH 18271
        s = Series(np.arange(2**24 + 1))
        result = s.rank(pct=True).max()
        astert result == 1