comparison trafficintelligence/utils.py @ 1060:c04550f957ab

bug corrected
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 11 Jul 2018 15:29:44 -0400
parents a87b3072bd26
children 8734742c08c0
comparison
equal deleted inserted replaced
1059:a87b3072bd26 1060:c04550f957ab
602 if method == 'centile': 602 if method == 'centile':
603 aggFunctions[method] = aggregationFunction(method, centiles) 603 aggFunctions[method] = aggregationFunction(method, centiles)
604 for c in centiles: 604 for c in centiles:
605 headers.append('{}{}'.format(method,c)) 605 headers.append('{}{}'.format(method,c))
606 else: 606 else:
607 aggFunctions[method] = utils.aggregationFunction(method) 607 aggFunctions[method] = aggregationFunction(method)
608 headers.append(method) 608 headers.append(method)
609 return aggFunctions, headers 609 return aggFunctions, headers
610 610
611 ######################### 611 #########################
612 # regression analysis using statsmodels (and pandas) 612 # regression analysis using statsmodels (and pandas)