Reputation: 65
Tips are there for dropping column and rows depending on some condition. But I want to drop the whole dataframe created in pandas. like in R : rm(dataframe) or in SQL: drop table
This will help to release the ram utilization.
Upvotes: 3
Views: 15892
Reputation: 37003
Generally creating a new object and binding it to a variable will allow the deletion of any object the variable previously referred to. del
, mentioned in @EdChum's comment, removes both the variable and any object it referred to.
This is an over-simplification, but it will serve.
Upvotes: 6