I am trying to download a time-series for the VIX and VXV which I would then need to generate a signal. I used the tutorials for the vix and VXV to learn how to deal with these datbases.
I followed the first part of the tutorial to build the pandas array with the data:
# Import VIX and VXV libraries
from quantopian.interactive.data.quandl import cboe_vxv as dataset2
from quantopian.interactive.data.quandl import yahoo_index_vix as dataset1
#import other Datasets
from odo import odo
import pandas as pd
import matplotlib.pyplot as plt
#create the arrays
vix_df = odo(dataset1, pd.DataFrame)
vxv_df = odo(dataset2, pd.DataFrame)
When I plotted the arrays everything looks fine. However, when I print them to check how they are structured the dataset looks a bit untidy. It starts from Feb2016 as first value, going up to 2016-05-03 in line 62, and then abruptly go to 2015-12-11. How can I sort the database?