Hi! My code is given below. I am able to combine multiple csv files but struggling for two things:
1. Sorting the data before the final output.
2. Deleting unwanted data of specific dates before the final output. (T
I am also attaching 3 sample csv files for your reference.
The first column DisplayDate is in 'dd-mm-yyyy hh:mm:ss' format
example : 20-03-2023 09:15:00 (20th March 2023)
Desired result
* The final csv file has dates sorted from newest to oldest. I want it the other way round - oldest to newest
* Identify max date and delete all records which are not equal to max date. Out of the multiple csv files, there will be very few files which will have more than one date. If that is the case, keep data of max (newest) date and remove records of old dates.
This code may not be efficient and perfect but it works. Please help me modify this code as per my desired result and if possible increase its efficiency and speed. Thank you
Please Login or Register to view this content.
Bookmarks