Inzynierka/Lib/site-packages/pandas/tests/series/methods/test_head_tail.py

9 lines
343 B
Python
Raw Normal View History

2023-06-02 12:51:02 +02:00
import pandas._testing as tm
def test_head_tail(string_series):
tm.assert_series_equal(string_series.head(), string_series[:5])
tm.assert_series_equal(string_series.head(0), string_series[0:0])
tm.assert_series_equal(string_series.tail(), string_series[-5:])
tm.assert_series_equal(string_series.tail(0), string_series[0:0])