7c0c72a9bd6e5666f18932136150ee742236a3bb,QUANTAXIS/QAData/base_datastruct.py,_quotation_base,security_gen,#_quotation_base#,470
Before Change
def security_gen(self):
"返回一个基于代码的迭代器"
for item in self.index.levels[1]:
yield self.new(self.data.xs(item, level=1).set_index(self.index.names, drop=False), dtype=self.type, if_fq=self.if_fq)
@property
@lru_cache()
After Change
def security_gen(self):
"返回一个基于代码的迭代器"
for item in self.index.levels[1]:
yield self.new(self.data.xs(item, level=1, drop_level=False), dtype=self.type, if_fq=self.if_fq)
@property
@lru_cache()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 7c0c72a9bd6e5666f18932136150ee742236a3bb
Time: 2018-06-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/base_datastruct.py
Class Name: _quotation_base
Method Name: security_gen
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4ba63dbf0e5142603267d2e13ab0fb9762bd7151
Time: 2018-06-04
Author: 604829050@qq.com
File Name: QUANTAXIS/QAData/base_datastruct.py
Class Name: _quotation_base
Method Name: security_gen
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 7c0c72a9bd6e5666f18932136150ee742236a3bb
Time: 2018-06-03
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/base_datastruct.py
Class Name: _quotation_base
Method Name: panel_gen
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4ba63dbf0e5142603267d2e13ab0fb9762bd7151
Time: 2018-06-04
Author: 604829050@qq.com
File Name: QUANTAXIS/QAData/base_datastruct.py
Class Name: _quotation_base
Method Name: panel_gen