I have a question and code given below. This is the normal scenario where script2 calls script1 which returns a dataframe. lets say, I have script3,4,5 which needs dataframe1 from script1, everytime, I call script1 from other scripts, script1 will get executed every time it is called. so, instead is there a way script1 is called only once and other scripts pulls/takes dataframe1 from script1?
script1()
code...
return dataframe1
script2()
from script1 import *
dataframe = script1()