projektAI/venv/Lib/site-packages/pandas/tests/series/test_npfuncs.py

17 lines
293 B
Python
Raw Normal View History

2021-06-06 22:13:05 +02:00
"""
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)