75083500446154a3ee3a394a175a5376ec53af35,QUANTAXIS/QAFetch/QATdx.py,,QA_fetch_get_stock_day,#Any#Any#Any#Any#Any#Any#,72
Before Change
info = xdxr_data[xdxr_data["category"] == 1]
data["code"] = code
data["date"] = data["datetime"].apply(lambda x: x[0:10])
data["date_stamp"] = data["date"].apply(
lambda x: QA_util_date_stamp(x))
data["date"] = pd.to_datetime(data["date"])
data.set_index("date", drop=False, inplace=True)
data["date"] = data["date"].apply(lambda x: str(x)[0:10])
data = data.drop(["year", "month", "day", "hour",
"minute", "datetime"], axis=1)
data = pd.concat([data, info[["fenhong", "peigu", "peigujia",
"songzhuangu"]][data.index[0]:]], axis=1).fillna(0)
After Change
data["low"] = data["low"] * data["adj"]
data["close"] = data["close"] * data["adj"]
data["preclose"] = data["preclose"] * data["adj"]
return data[start_date:end_date]
elif if_fq in ["02", "hfq"]:
xdxr_data = QA_fetch_get_stock_xdxr(code)
info = xdxr_data[xdxr_data["category"] == 1]
data["date"] = data["datetime"].apply(lambda x: x[0:10])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 75083500446154a3ee3a394a175a5376ec53af35
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3cb00ac929a447e8a5bec0d684ed408008d9cc33
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 75083500446154a3ee3a394a175a5376ec53af35
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_day
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 289c8670e6698d32cbc15840ad213c7c0fa71e83
Time: 2017-09-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_index_min