mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-27 09:18:02 +01:00
17 lines
293 B
Python
17 lines
293 B
Python
|
"""
|
||
|
Tests for np.foo applied to Series, not necessarily ufuncs.
|
||
|
"""
|
||
|
|
||
|
import numpy as np
|
||
|
|
||
|
from pandas import Series
|
||
|
|
||
|
|
||
|
class TestPtp:
|
||
|
def test_ptp(self):
|
||
|
# GH#21614
|
||
|
N = 1000
|
||
|
arr = np.random.randn(N)
|
||
|
ser = Series(arr)
|
||
|
assert np.ptp(ser) == np.ptp(arr)
|