What is the best way to filter down the pipeline only to specific industries or even symbols? I see an option to filter it after the fact using context.output.loc in before_trading_start, but this seems to be very wasteful in resources.
I am trying to create an algorithm that will rebalance monthly based on TTM of revenue. Since get_fundamentals does not provide TTM, I am trying to use the Pipeline API.
Thanks!