I am extracting data from a web site and I want to store it in a database. To do that I want to create and delete data frames inside a for-loop.
I tried creating a list of data frames and using a loop for deleting each element but it didn't work.
tables = [df1,df2,df3]
for table in tables:
del table
It does not delete the data frames and does not show any error.
I can delete them one by one using 'del' but I need a more scalable solution.
del df1
del df2