#NEWLINE# def to_timestamp( self , freq = None , how = 'start' , copy = True ) : #NEWLINE# #INDENT# "\n        Cast to datetimeindex of timestamps, at *beginning* of period\n\n        Parameters\n        ----------\n        freq : string, default frequency of PeriodIndex\n            Desired frequency\n        how : {'s', 'e', 'start', 'end'}\n            Convention for converting period to timestamp; start of period\n            vs. end\n\n        Returns\n        -------\n        ts : Series with DatetimeIndex\n        " #NEWLINE# new_values = self . _values #NEWLINE# if copy : #NEWLINE# #INDENT# new_values = new_values . copy ( ) #NEWLINE# #UNINDENT# new_index = self . index . to_timestamp ( freq = freq , how = how ) #NEWLINE# return self . _constructor ( new_values , index = new_index ) . __finalize__ ( self )