piper.verbs.tail¶
-
piper.verbs.tail(df: pandas.core.frame.DataFrame, n: int = 4, shape: bool = True, tablefmt: bool = False, precision: int = 0) → pandas.core.frame.DataFrame[source]¶ show last n records of a dataframe
Like the corresponding R function, displays the last n records Alternative to df.tail().
Examples
tail(df)
- Parameters
df – pandas dataframe
n – Default n=4. number of rows to display
shape – Default True, show shape information
tablefmt – Default False. If supplied, tablefmt keyword value can be any valid format supplied by the tabulate package
precision – Default 0. Number precision shown if tablefmt specified
- Returns
- Return type
A pandas dataframe