get the first element of a dataframe column code example Example: get only first 10 columns pandas df.iloc[:, : 50]