Open PaoloLeonard opened 3 years ago
There is a small bug when you first filter the tickers by Market Cap. As it stands, you do not remove the nan values from the tickers dataframe.
for index, row in tickers_pd.iterrows(): if(row['Market Cap'] < 300_000_000): tickers_pd = tickers_pd.drop(index)
tickers_pd = tickers_pd.loc[tickers_pd['Market Cap'] > 300_000_000]
The fix is also faster than the current for-loop.
Bug explanation
There is a small bug when you first filter the tickers by Market Cap. As it stands, you do not remove the nan values from the tickers dataframe.
Now
Fix
The fix is also faster than the current for-loop.