how to find the range of a column in pandas code example Example: pandas from range of columns df1.loc['d':, 'A':'C']