pandas DataFrame drops index when passing to kdb+ (using qPython API)

别说谁变了你拦得住时间么 提交于 2020-01-15 12:34:07
问题 I am trying to pass time-series data from Python to q/kdb+ . One solution out there is qPython module, offering seamless conversion from q table/dictionary to Pandas. The problem is when trying to pass from Pandas to q , the time index in DataFrame (in the column Date ) doesn't quite make it to the q side. Reproducible code: import pandas.io.data as web import datetime import numpy import qpython.qconnection as qconnection # requires installation of qPython module from https://github.com