9d5565affe6314056373bf789868e8db714a3da8,QUANTAXIS/QAFetch/QATdx.py,,QA_fetch_get_stock_list,#Any#Any#Any#,697

Before Change



        if type_ in ["stock", "gp"]:

            return pd.concat([sz, sh], sort=False).query(
                "sec=="stock_cn"").sort_index().assign(
                name=data["name"].apply(lambda x: str(x)[0:6]))

        elif type_ in ["index", "zs"]:

            return pd.concat([sz, sh], sort=False).query(

After Change


        sh = sh.assign(sec=sh.code.apply(for_sh))

        if type_ in ["stock", "gp"]:
            res = pd.read_csv("http://data.yutiansut.com/stock_code.csv")
            return res.assign(code=res.code.apply(lambda x: QA_util_code_tostr(x)))
            // return pd.concat([sz, sh], sort=False).query(
            //     "sec=="stock_cn"").sort_index().assign(
            //     name=data["name"].apply(lambda x: str(x)[0:6]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 9d5565affe6314056373bf789868e8db714a3da8
Time: 2020-08-04
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_list


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 807f63ce2e2bf07b268458e4855a5d3b57b0e4d9
Time: 2018-07-09
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_quotations


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 807f63ce2e2bf07b268458e4855a5d3b57b0e4d9
Time: 2018-07-09
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_quotation