MCPcopy Create free account
hub / github.com/JoinQuant/jqfactor_analyzer / neutralize

Function neutralize

jqfactor_analyzer/preprocess.py:230–301  ·  view source on GitHub ↗

中性化 data: pd.Series/pd.DataFrame, 待中性化的序列, 序列的 index/columns 为股票的 code how: str list. 中性化使用的因子名称列表. 默认为 ['jq_l1', 'market_cap'], 支持的中性化方法有: 1. 行业: sw_l1, sw_l2, sw_l3, jq_l1, jq_l2 2. 市值因子: mktcap(总市值), ln_mktcap(对数总市值), cmktcap(流通市值), ln_cmktcap(对数流通市值)

(data, how=None, date=None, axis=1, fillna=None, add_constant=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_preprocessFunction · 0.85

Calls 4

get_neu_basicdataFunction · 0.85
cache_dataapiFunction · 0.85
get_residFunction · 0.85

Tested by 1

test_preprocessFunction · 0.68