Ask Your Question
0

How run multiple scripts from one scripts and retrieve results

asked 2022-04-27 10:50:33 -0600

anonymous user

Anonymous

Hello I have 3 scripts at the end of each script i have a dataframe results and i want to run this 3 scrips from one script and to show results (3 dataframes) that i will regroupe in one dataframe. If you know how to run this 3 scripts at the same time and get results in one file (Dataframe)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2022-04-28 10:33:28 -0600

perolofl gravatar image

I think you need something like this: Move the 3 scripts to 3 functions and call the functions from the main script.

def func1():
    # do stuff
    return df1

def func2():
    # do stuff
    return df2

def func3():
    # do stuff
    return df3

# Main script
df1 = func1()
df2 = func2()
df3 = func3()
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2022-04-27 10:50:33 -0600

Seen: 262 times

Last updated: Apr 28 '22