I have the following data read:
print datetime.datetime.now()
opts = m.get_unique_dates_for_underlying(ticker, "date")
print datetime.datetime.now()
With the following output:
2015-11-02 22:46:50.371000
2015-11-02 22:46:50.371000
Now when I go to read the data into my dataframe it takes 12 minutes when running:
df_opts = pd.DataFrame(list(opts)).convert_objects()
Is there a faster way to accomplish this?
df_opts
is of length 351,500.