Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to sort by date in .csv

from datetime import datetime

data = sorted(data, key = lambda row: datetime.strptime(row[0], "%d-%b-%y"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #date
ADD COMMENT
Topic
Name
7+3 =