how to get a range in dataframe pythone code example Example: pandas from range of columns df1.loc['d':, 'A':'C']