pandas show firsts rows code example Example 1: head pandas python # Returns the first 5 rows df.head(n=5) Example 2: pandas show top 10 rows df.head(10)