mydata and mydata2 DataFrames have the following structure:
Open High Low Close Change Traded Volume Turnover \
Date
2017-07-27 110.5 110.65 107.20 108.45 NaN 4446867.0 482614685.0
2017-07-28 107.2 107.70 106.45 107.70 NaN 2577718.0 276580879.0
2017-07-31 107.8 108.30 106.90 107.15 NaN 1901128.0 204391824.0
2017-08-01 107.6 107.80 106.35 107.50 NaN 1545384.0 165922983.0
2017-08-02 107.2 107.55 105.90 106.20 NaN 1520276.0 161921852.0
Last Price of the Day Daily Traded Units Daily Turnover
Date
2017-07-27 None None NaN
2017-07-28 None None NaN
2017-07-31 None None NaN
2017-08-01 None None NaN
2017-08-02 None None NaN
seems you need to convert dataframe to dictionary, but i have never done this.
use type() to see what data types you are dealing with
This is why including the essential details in the original topic is very important, if you would have, i wouldn’t have responded to it, given i have never done this, and let someone who does know handle it