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

Before Change


        elif format in ["list", "l", "L"]:
            __data = __data
        elif format in ["P", "p", "pandas", "pd"]:
            __data = DataFrame(
                __data, columns=["code", "open", "high", "low", "close", "up_count", "down_count", "volume", "amount", "date"])
            __data["date"] = pd.to_datetime(__data["date"])
            __data = __data.set_index("date", drop=False)
        else:
            print("QA Error QA_fetch_index_day format parameter %s is none of  \"P, p, pandas, pd , n, N, numpy !\" " % format)

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: 7

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: scikit-learn-contrib/categorical-encoding
Commit Name: fc4917ae8a7320fc9a258b50d82a177ed2124a91
Time: 2018-12-21
Author: jcastaldo08@gmail.com
File Name: category_encoders/basen.py
Class Name: BaseNEncoder
Method Name: fit_base_n_encoding


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_min