I have written a function in python, which I want to be able to use in many different scripts.
Can I save this and then load in?
So the function is
def dosomething(x):
do something
I want to save this as a file in my documents
file=r/xxx/xxx/dosomething.py
Then in a new script I want to load it in and use it
New Script
df=data
load_function(path=file)
df=df.apply(dosomething)
Is anything like this possible?