Let's say I have a list:
Date = ['2015-Q1', '2013-Q4', '2017-Q2', '2018-Q1']
How can I sort it into chronological order such that:
Date = ['2013-Q4', '2015-Q1', '2017-Q2', '2018-Q1']
import natsort
natsort.natsorted(Date)
Out[103]: ['2013-Q4', '2015-Q1', '2017-Q2', '2018-Q1']