Mar-04-2023, 04:22 PM
Hi,
what to you mean by "shorten"? The code is already pretty short... If you like to get rid of one line, you can skip line 5 in your code and skip deleting the year, month, ... columns, as there not a real need for it.
You could also shorten the code if the input csv would have a column for datetime already instead of six columns. In case you have an impact on how the csv file is structured.
Regards, noisefloor
what to you mean by "shorten"? The code is already pretty short... If you like to get rid of one line, you can skip line 5 in your code and skip deleting the year, month, ... columns, as there not a real need for it.
You could also shorten the code if the input csv would have a column for datetime already instead of six columns. In case you have an impact on how the csv file is structured.
Regards, noisefloor