How would I automatically refresh a graph if the data changes?

Let me explain:
I have a graph that shows email traffic over time. This graph is built by reading a .csv file, then converting that .csv file to a dataframe, then finally using that dataframe.
I have a filtration system that updates the .csv file when I chose to filter it, however the graph itself does not change when the .csv file does. Instead, I need to restart the application for it to take effect. Is there any way that I can make the graph automatically change if the .csv file changes?

I would appreciate the help and advice!

Hi @thebenjameister

Check out the below post. If you still need any other help then please ask.