python head of data code example Example: getting head in pandas # to show the first 5 coloums of the tabel df.head()