Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort a pandas dataframe based on date and time

df = df.sort_values(by='DateTime1',ascending=True)
df
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #pandas #dataframe #based #date #time
ADD COMMENT
Topic
Name
6+3 =