Hi Fellows,
I am trying to select only one stock from a list with .top() function.
When I choose to put 2, the code below runs smoothly.
longs = sma_rank.top(2, mask=remove_penny_stocks)
However, when I choose to select 1 stock, the code will have an error.
longs = sma_rank.top(1, mask=remove_penny_stocks)
Can someone help me on this? Any ideas will be greatly appreciated.