Dear all. In the following 4 scenarios, the mask is placed at different places.
I wonder if the results of the 4 scenarios are the same?
Are scenarios 1 and 2 preferred?
1
is_sp500 = sharadar.SP500.in_sp500.latest
marketcap = sharadar.Fundamentals.slice(dimension='ARQ', period_offset=0).MARKETCAP.latest
tradable_stocks = marketcap.top(100, mask = is_sp500)
2
is_sp500 = sharadar.SP500.in_sp500.latest
tradable_stocks = Latest([sharadar.Fundamentals.slice(dimension='ARQ', period_offset=0).MARKETCAP]).top(100, mask=is_sp500)
3
is_sp500 = sharadar.SP500.in_sp500.latest
tradable_stocks = Latest([sharadar.Fundamentals.slice(dimension='ARQ', period_offset=0).MARKETCAP],mask=is_sp500).top(100)
4
is_sp500 = sharadar.SP500.in_sp500.latest
tradable_stocks = Latest([sharadar.Fundamentals.slice(dimension='ARQ', period_offset=0).MARKETCAP],mask=is_sp500).top(100,mask=is_sp500)