461bca318e2e5faac45c5661aaaf4d4130c9d21d,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_quotations,#Any#Any#,509
Before Change
try:
collections = db.get_collection(
"realtime_{}".format(date))
data = pd.DataFrame([item for item in collections.find(
{}, batch_size=10000)]).drop(["_id"], axis=1)
return data.assign(date=data.datetime.apply(lambda x: str(x)[0:10])).assign(datetime=pd.to_datetime(data.datetime)).set_index("datetime", drop=False).sort_index()
except Exception as e:
raise e
After Change
try:
collections = db.get_collection(
"realtime_{}".format(date))
data = pd.DataFrame([item for item in collections.find(
{}, {"_id": 0}, batch_size=10000)])
return data.assign(date=data.datetime.apply(lambda x: str(x)[0:10])).assign(datetime=pd.to_datetime(data.datetime)).set_index("datetime", drop=False).sort_index()
except Exception as e:
raise e
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 461bca318e2e5faac45c5661aaaf4d4130c9d21d
Time: 2018-12-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_quotations
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 461bca318e2e5faac45c5661aaaf4d4130c9d21d
Time: 2018-12-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_stock_info
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 461bca318e2e5faac45c5661aaaf4d4130c9d21d
Time: 2018-12-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_quotation
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 461bca318e2e5faac45c5661aaaf4d4130c9d21d
Time: 2018-12-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_lhb