Skip to content

Commit

Permalink
Merge pull request #22 from Som-Energia/FIX_locale
Browse files Browse the repository at this point in the history
change write locale to comma decimal and semicolon separated value
  • Loading branch information
polmonso committed Apr 24, 2020
2 parents 06b5833 + 7db2a01 commit 9e033bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/integral_batch_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def main():
integrals = trapezoidal_approximation(ordered_sensors, from_date, to_date, outputDataFormat, timeSpacing, columnTitle)

integralsDF = pd.DataFrame(data = integrals, columns = ['datetime', columnTitle])
integralsDF.to_csv(output_data_file, sep=',', encoding='utf-8', index=False)
integralsDF.to_csv(output_data_file, sep=';', decimal=',', encoding='utf-8', index=False)

print("Saved {} records from {} to {}".format(len(integralsDF), from_date, to_date))
asciigraph_print(integrals)
Expand Down

0 comments on commit 9e033bf

Please sign in to comment.