I have a dictionary called frames
with dataframes in it which summarize my data source considering different factors.
Some of this combinations return empty summaries and those dataframes are empty.
My question is how can I remove these empty dataframes from my dictionary? I tried the below but they still persist.
new_frames = {k:v for (k,v) in frames.items() if v is not None}
Thank you