Quantopian Pipeline: ValueError: установка элемента массива с последовательностью - PullRequest
0 голосов
/ 31 августа 2018
class PD(CustomFactor):  
inputs = [morningstar.asset_classification.financial_health_grade]  
window_length = 1  
def compute(self, today, assets, out, financial_health_grade):  
    print(len(financial_health_grade))  
    out[:] = financial_health_grade[-1]  

Когда я добавляю это в конвейер, он возвращает ValueError: setting an array element with a sequence.

Как я могу решить это?

...