Mercurial Hosting > traffic-intelligence
diff python/utils.py @ 978:184f1dd307f9
corrected print and exception statements for Python 3
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 08 Feb 2018 05:53:50 -0500 |
parents | 4f3f88a27dae |
children | 94bee7b604eb |
line wrap: on
line diff
--- a/python/utils.py Tue Feb 06 11:50:43 2018 -0500 +++ b/python/utils.py Thu Feb 08 05:53:50 2018 -0500 @@ -421,7 +421,7 @@ for x in independentVariableValues: print('Shapiro-Wilk normality test for {} when {}={}: {} obs'.format(dependentVariable,independentVariable, x, len(tmp.loc[tmp[independentVariable] == x, dependentVariable]))) if len(tmp.loc[tmp[independentVariable] == x, dependentVariable]) >= 3: - print shapiro(tmp.loc[tmp[independentVariable] == x, dependentVariable]) + print(shapiro(tmp.loc[tmp[independentVariable] == x, dependentVariable])) if plotFigure: plt.figure() plt.boxplot([tmp.loc[tmp[independentVariable] == x, dependentVariable] for x in independentVariableValues]) @@ -442,7 +442,7 @@ +'\\end{minipage}\n' +'\\ \\vspace{0.5cm}\n') else: - print table + print(table) return testResult else: return None