how to select the range of data with multiple columns using time in pandas code example Example: df only take 2 columns df1 = df[['a', 'b']]