Quandl

Quandl download the data in descendign order by date.How to change it to ascending order so that there wont be any  mis calculation?

Hello Abhilash,



You can do either of the following two things:


  1. Sort the datetime column:
qdl_data = qdl_data.sort_values(by='date',ascending=True)

2) Set the datetime column as index and sort the index
qdl_data.set_index('date', inplace=True)
qdl_data = qdl_data.sort_index()