Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas order by date column

>>> df.sort_values(by='Date') # This now sorts in date order
        Date Symbol
0 2015-02-20      A
2 2015-08-21      A
1 2016-01-15      A
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #order #date #column
ADD COMMENT
Topic
Name
1+4 =