print only first 10 values of pandas dataframe code example Example: get only first 10 columns pandas df.iloc[:, : 50]