5c34d497ab32ea731b687c5863f104615f666d06,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_index_day,#,250

Before Change


            return [data for data in cursor]
        for item in cursor:

            __data.append([str(item["code"]), float(item["open"]), float(item["high"]), float(
                item["low"]), float(item["close"]), int(item["up_count"]), int(item["down_count"]), float(item["vol"]), float(item["amount"]), item["date"]])

        // 多种数据格式
        if format in ["n", "N", "numpy"]:

After Change


        if format in ["dict", "json"]:
            return [data for data in cursor]
        for item in cursor:
            __data = pd.DataFrame([item for item in cursor])
            __data = __data.assign(date=pd.to_datetime(__data["date"]))
            // __data.append([str(item["code"]), float(item["open"]), float(item["high"]), float(
            //     item["low"]), float(item["close"]), int(item["up_count"]), int(item["down_count"]), float(item["vol"]), float(item["amount"]), item["date"]])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 5c34d497ab32ea731b687c5863f104615f666d06
Time: 2019-02-16
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day


Project Name: geekcomputers/Python
Commit Name: 3dfdfaa6db730f66bdff5155320d4c4ee5d5b29c
Time: 2020-09-20
Author: markhappy200@gmail.com
File Name: EncryptionTool.py
Class Name:
Method Name: readAndDecrypt


Project Name: data61/python-paillier
Commit Name: 96416b889c76f3b6d15af0e3dfd0d4cb2b8b2d23
Time: 2017-06-15
Author: giorgio.patrini@anu.edu.au
File Name: examples/paillier_logistic_regression.py
Class Name: Alice
Method Name: encrypt_weights