- - under the hoodthese datetime objects have been put in datetimeindexand the variable ts is now of type timeseriesin [ ]type(tsout[ ]pandas core series timeseries in [ ]ts index out[ ] : : : : length freqnonetimezonenone it' not necessary to use the timeseries constructor explicitlywhen creating series with datetimeindexpandas knows that the object is time series like other seriesarithmetic operations between differently-indexed time series automatically align on the datesin [ ]ts ts[:: out[ ] nan - nan - nan pandas stores timestamps using numpy' datetime data type at the nanosecond resolutionin [ ]ts index dtype out[ ]dtype('datetime [ns]'scalar values from datetimeindex are pandas timestamp objects in [ ]stamp ts index[ in [ ]stamp out[ ] timestamp can be substituted anywhere you would use datetime object additionallyit can store frequency information (if anyand understands how to do time zone conversions and other kinds of manipulations more on both of these things later indexingselectionsubsetting timeseries is subclass of series and thus behaves in the same way with regard to indexing and selecting data based on label time series www it-ebooks info