pandas dataframe get every second column code example Example: dataframe look at every second column df[df.columns[::n]]