33e73124b5b78f9eedf5eea4da5cfd102a226c08,QUANTAXIS/QAData/data_fq.py,,QA_data_make_qfq,#Any#Any#,51

Before Change


def QA_data_make_qfq(bfq_data, xdxr_data):
    "使用数据库数据进行复权"
    info = xdxr_data[xdxr_data["category"] == 1]
    bfq_data.loc[:, "if_trade"] = 1
    data = pd.concat([bfq_data, info[["category"]]
                      [bfq_data.index[0]:bfq_data.index[-1]]], axis=1)
    data["if_trade"].fillna(value=0, inplace=True)
    data = data.fillna(method="ffill")

After Change


def QA_data_make_qfq(bfq_data, xdxr_data):
    "使用数据库数据进行复权"
    info = xdxr_data[xdxr_data["category"] == 1]
    bfq_data = bfq_data.assign(if_trade=1)
    data = pd.concat([bfq_data, info[["category"]]
                      [bfq_data.index[0]:bfq_data.index[-1]]], axis=1)
    data["if_trade"].fillna(value=0, inplace=True)
    data = data.fillna(method="ffill")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 33e73124b5b78f9eedf5eea4da5cfd102a226c08
Time: 2018-01-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_fq.py
Class Name:
Method Name: QA_data_make_qfq


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 33e73124b5b78f9eedf5eea4da5cfd102a226c08
Time: 2018-01-24
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_fq.py
Class Name:
Method Name: QA_data_make_hfq


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 9337cca8b6f43bd7f780c980b4ca6f044bc8774d
Time: 2020-03-14
Author: 11652964@qq.com
File Name: QUANTAXIS/QAAnalysis/QAAnalysis_signal.py
Class Name:
Method Name: ma30_cross_func