I'm still learning python and I have a simple problem and i made a reasearch already with no success.
I have this simple code:
import pandas as pd
def readDF():
df = **reads a df from excel**
return df
DF = readDF()
The problem is that everytime i try to access the DF variable from another module it reads the entire datafram again, and I just want to read it one time and "store it" for use. Is there any way to read it just the first time and "store it" in the variable DF?