Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
TypeError: rank() missing 1 required positional argument: 'self'

Hey Everyone!

I have been fiddling around with the ML Part 3 algorithm and backtested it a number of times and now all of a sudden, for this chunk of code;

rank all the factors and put them after returns

pipeline_columns.update({  
    k: v.rank(mask=universe) for k, v in features.items()  

})

I am faced with this error;

TypeError: rank() missing 1 required positional argument: 'self'
... USER ALGORITHM:795, in
k: v.rank(mask=universe) for k, v in features.items()

Relevent backtest is attached, I am fairly new to quantopian so i apologize if this is a simple question.

Kind Regards,

Robbie

1 response

Apologies, preious backtest wasn't run properly, here is one that ran so you can see code