time series data analysis python code example Example: Slicing time series subts = TS.loc['2015-09-26':'2015-09-27']