I have a SQLite table like below:
Date Value
01-01-2018 00:00:00 12,2
02-01-2018 00:00:00 13,5
03-01-2018 00:00:00 15,6
04-01-2018 00:00:00 17,8
05-01-2018 00:00:00 18,3
I can read this table with pandas.read_sql(“select * from TableName”, conn)
.
I want to write them into csv file like that:
Year;month;day;hour;minute;second;value
01;01,2018;00;00;00;12,2
02;01;2018;00;00;00;13,5
03;01;2018;00;00;00;15,6
04;01;2018;00;00;00;17,8
05;01;2018;00;00;00;18,3
I have investigated all examples and questions and pandas documentation, as well. However I could not find a solution to convert my table to csv like that.
Date is timestamp and value is real type in SQLite.