pandas.Series.tail

pandas 3.1.1 · Series and accessors · method

Get the last n entries or rows. On GroupBy the limit applies per group.

Call syntax

Series.tail(n=5)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
n Optional
Positional or keyword
Default 5
int

Choose how many entries or positions to use.

Returns

type of caller