Get columns in range in dataframe code example Example: pandas from range of columns df1.loc['d':, 'A':'C']