pandas how to get only first values of a columns code example Example: get only first 10 columns pandas df.iloc[:, : 50]