To help debug the problem, you might want to try it in the notebooks environment.
When I run this code I see there are 1000 stocks.
from quantopian.pipeline import Pipeline
from quantopian.pipeline.filters import QTradableStocksUS
from quantopian.pipeline.data import Fundamentals
#from quantopian.pipeline.domain import US_EQUITIES
from quantopian.research import run_pipeline
def make_pipeline():
# Gets the latest market cap.
mkt_cap = Fundamentals.market_cap.latest
screen = mkt_cap.top(1000)#, mask=(QTradableStocksUS()))
return Pipeline(
columns={
'mkt_cap': mkt_cap,
},
#domain=US_EQUITIES,
screen=screen,
)
df = run_pipeline(make_pipeline(),'2020-08-24','2020-08-24')
df.shape