How to take the first column in dataframe code example Example: get only first 10 columns pandas df.iloc[:, : 50]