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