#NEWLINE# def __repr__( self ) : #NEWLINE# #INDENT# if ( not len ( self . points ) ) : #NEWLINE# #INDENT# return 'TimeSeries([])' #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# columns = [ 'Value' ] #NEWLINE# rows = [ ] #NEWLINE# for ( date , value ) in self . points : #NEWLINE# #INDENT# date = to_datetime ( date ) . isoformat ( ' ' ) #NEWLINE# rows . append ( date ) #NEWLINE# data [ data ] = { #NEWLINE# #INDENT# 'Value' : value , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return table_repr ( columns , rows , data )