in [ ]result ts ts in [ ]result index out[ ] : : : : length freqbtimezoneutc periods and period arithmetic periods represent time spanslike daysmonthsquartersor years the period class represents this data typerequiring string or integer and frequency from the above tablein [ ] pd period( freq=' -dec'in [ ] out[ ]period(' '' -dec'in this casethe period object represents the full timespan from january to december inclusive convenientlyadding and subtracting integers from periods has the effect of shifting by their frequencyin [ ] out[ ]period(' '' -dec'in [ ] out[ ]period(' '' -dec'if two periods have the same frequencytheir difference is the number of units between themin [ ]pd period(' 'freq=' -dec' out[ ] regular ranges of periods can be constructed using the period_range functionin [ ]rng pd period_range(''''freq=' 'in [ ]rng out[ ]freqm [ - - length the periodindex class stores sequence of periods and can serve as an axis index in any pandas data structurein [ ]series(np random randn( )index=rngout[ ] - - - - - - - - periods and period arithmetic www it-ebooks info