def = data.head(self, n=5) code example Example: head pandas python # Returns the first 5 rows df.head(n=5)