I have 284 dataframes where I need to iterate over the last 20 rows and if specific columns have any value then copy that entire row to a new dataframe. I get the desired result through the following:
dataframes_list[0].tail(20).drop_duplicates(subset=["Buy","Sell"], keep=False)
By using a for loop, how can I save the result from all the 284 dataframes into a new dataframe?