https://dagster.io/ logo
#ask-community
Title
# ask-community
a

Aaron Bailey

05/03/2022, 5:03 PM
Have an op providing 2 outputs both of which are dataframes. I am using these outputs in further ops. If i only define 1 output it works - but gives me the following error when 2 are used: _In @job segway_am, received a tuple of multiple outputs for input "files" (at position 0) in op invocation segment_profile_queries. Must pass individual output, available from tuple: ('files', 'lookupdf')_ Here is my code: @op(out={"files": Out(), "lookupdf": Out()}) def get_pyqb_data(): return files, lookupdf @op() def segment_profile_queries(files): @job() def segway_am(): segment_profile_queries(get_pyqb_data()) Any idea?
p

prha

05/03/2022, 5:20 PM
I think you would need to change to the following:
Copy code
@job()
def segway_am():
    files, lookupdf = get_pyqb_data()
    segment_profile_queries(files)
a

Aaron Bailey

05/03/2022, 5:32 PM
Bingo - sorry - I have seen that you all have answer this a million times on slack. Again thanks for your assistance!!!
dagsir 1
3 Views