Examples
import numpy as np
import pandas as pd
df = pd.DataFrame({'animal':['snake', 'bat', 'tiger', 'lion',
'fox', 'eagle', 'shark', 'dog', 'deer']})
df
Viewing the last 5 lines
df.tail()
Viewing the last 4 lines:
df.tail(4)