eland.DataFrame.tail

DataFrame.tail(self, n=5)

Return the last n rows.

This function returns the last n rows for the object based on position. The row order is sorted by index field. It is useful for quickly testing if your object has the right type of data in it.

Parameters:
n: int, default 5

Number of rows to select.

Returns:
eland.DataFrame:

eland DataFrame filtered on last n rows sorted by index field

Examples

>>> df = ed.DataFrame('localhost', 'flights', columns=['Origin', 'Dest'])
>>> df.tail()
                                                  Origin                                      Dest
13054                         Pisa International Airport      Xi'an Xianyang International Airport
13055  Winnipeg / James Armstrong Richardson Internat...                            Zurich Airport
13056     Licenciado Benito Juarez International Airport                         Ukrainka Air Base
13057                                      Itami Airport  Ministro Pistarini International Airport
13058                     Adelaide International Airport   Washington Dulles International Airport
<BLANKLINE>
[5 rows x 2 columns]