To get the last 'x' rows of a pandas dataframe, you can use the tail
method. The argument passed to tail
is the number of rows you want to select. Here is an example where we select the last three rows:
main.py233 chars11 lines
This will output:
main.py36 chars5 lines
gistlibby LogSnag