Quantopian Pipeline: ValueError: установка элемента массива с последовательностью
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.
Как я могу решить это?