314ff353d7fe3ea0cdb3aea466a4bf8e7b2dadb4,QUANTAXIS/QAFetch/QATdx.py,,QA_fetch_get_stock_xdxr,#Any#Any#Any#,302
Before Change
data = data.drop(["year", "month", "day"], axis=1)
data["category_meaning"] = data["category"].apply(
lambda x: category[str(x)])
data["code"] = code
data = data.rename(index=str, columns={"panhouliutong": "liquidity_after",
"panqianliutong": "liquidity_before", "houzongguben": "shares_after",
"qianzongguben": "shares_before"})
data.set_index("date", drop=False, inplace=True)
data["date"] = data["date"].apply(lambda x: str(x))
return data
if __name__ == "__main__":
After Change
"6": "增发新股", "7": "股份回购", "8": "增发新股上市", "9": "转配股上市", "10": "可转债上市",
"11": "扩缩股", "12": "非流通股缩股", "13": "送认购权证", "14": "送认沽权证"}
data = api.to_df(api.get_xdxr_info(market_code, code))
return data\
.assign(date=pd.to_datetime(data[["year", "month", "day"]]))\
.drop(["year", "month", "day"], axis=1)\
.assign(category_meaning=data["category"].apply(lambda x: category[str(x)]))\
.assign(code=str(code))\
.rename(index=str, columns={"panhouliutong": "liquidity_after",
"panqianliutong": "liquidity_before", "houzongguben": "shares_after",
"qianzongguben": "shares_before"})\
.set_index("date", drop=False, inplace=False)
if __name__ == "__main__":
// print(QA_fetch_get_stock_day("000001","2017-07-03","2017-07-10"))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 314ff353d7fe3ea0cdb3aea466a4bf8e7b2dadb4
Time: 2017-09-01
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_xdxr
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: 314ff353d7fe3ea0cdb3aea466a4bf8e7b2dadb4
Time: 2017-09-01
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATdx.py
Class Name:
Method Name: QA_fetch_get_stock_xdxr
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