Answers for "how to sort by date in .csv"

0

how to sort by date in .csv

from datetime import datetime

data = sorted(data, key = lambda row: datetime.strptime(row[0], "%d-%b-%y"))
Posted by: Guest on September-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language