in [ ]ts[stampout[ ]- as convenienceyou can also pass string that is interpretable as datein [ ]ts[''out[ ]- in [ ]ts[' 'out[ ]- for longer time seriesa year or only year and month can be passed to easily select slices of datain [ ]longer_ts series(np random randn( )index=pd date_range(''periods= )in [ ]longer_ts out[ ] - - - - freqdlength in [ ]longer_ts[' 'out[ ]- - - - freqdlength in [ ]longer_ts[' - 'out[ ] - - - - - freqdlength slicing with dates works just like with regular seriesin [ ]ts[datetime( ):out[ ]- - - - because most time series data is ordered chronologicallyyou can slice with timestamps not contained in time series to perform range queryin [ ]ts out[ ] in [ ]ts['':''out[ ]- time series basics www it-ebooks info