#NEWLINE# def load_pandas( ) : #NEWLINE# #INDENT# data = load ( ) #NEWLINE# index = pd . DatetimeIndex ( start = data . data [ 'date' ] [ 0 ] . decode ( 'utf-8' ) , periods = len ( data . data ) , format = '%Y%m%d' , freq = 'W-SAT' ) #NEWLINE# dataset = pd . DataFrame ( data . data [ 'co2' ] , index = index , columns = [ 'co2' ] ) #NEWLINE# data . data = dataset #NEWLINE# return data