access the values from a range of columns in pandas code example Example: pandas from range of columns df1.loc['d':, 'A':'C']