56a1b187cec08cea9e41b38764a614a7c843dc4d,QUANTAXIS/QAFetch/QAQuery_Advance.py,,QA_fetch_stock_list_adv,#Any#,309

Before Change


    :param collections: mongodb 数据库
    :return: DataFrame
    """
    stock_list_items = [item for item in collections.find()]
    if len(stock_list_items) == 0:
        print("QA Error QA_fetch_stock_list_adv call item for item in collections.find() return 0 item, maybe the DATABASE.stock_list is empty!")
        return
    return pd.DataFrame(stock_list_items).drop("_id", axis=1, inplace=False)

After Change


    if len(stock_list_items) == 0:
        print("QA Error QA_fetch_stock_list_adv call item for item in collections.find() return 0 item, maybe the DATABASE.stock_list is empty!")
        return None
    return pd.DataFrame(stock_list_items).drop("_id", axis=1, inplace=False).set_index("code",drop=False)


def QA_fetch_index_list_adv(collections=DATABASE.index_list):
    """
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 56a1b187cec08cea9e41b38764a614a7c843dc4d
Time: 2018-08-30
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery_Advance.py
Class Name:
Method Name: QA_fetch_stock_list_adv


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4113a6a3be19167a8c551f8ae20e849ac851e52c
Time: 2019-03-25
Author: zhongjy1992@outlook.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 5b4d04de17457286fe4e5f3e0e8295db42d0f064
Time: 2020-04-05
Author: 11652964@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_min