I am trying to filter stocks out that have bad "growth grades" (from fundamental data).
growthGrade = morningstar.asset_classification.growth_grade.latest
goodGrade = growthGrade =="A" or growthGrade =='A-' or growthGrade =='A+'
pipe = Pipeline(,
columns = {
'goodGrade' : goodGrade
}
)
I get the following error...
AttributeError: 'bool' object has no attribute 'ndim'
If there is a better way to do this, I would love to hear it.