Python Forum
Passing data between functions, got it working, but need clarification please
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing data between functions, got it working, but need clarification please
#2
test2(test1())
if you called test by itself, you would do something like:
df = test1()
test2(df)
# or 
xx = test1()
test2(xx)
so the last line is simply a shortcut, it states that test1 is to be executed and the results will be the argument to test2.
If test1 did not return a value, it would fail, try it.
Reply


Messages In This Thread
RE: Passing data between functions, got it working, but need clarification please - by Larz60+ - Apr-18-2018, 06:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Having trouble setting the X-Ticks for a data set I am working with. Mr_OHagan 1 558 Jan-22-2024, 09:12 PM
Last Post: deanhystad
  I'm working onn below code to extract data from excel using python kiran 1 3,318 Oct-24-2017, 01:42 PM
Last Post: kiran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020