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

Peter Davidson

12/08/2022, 1:10 PM
When you use pandas pipe to stack ops on a data frame, e.g:
Copy code
def pipe_op(df):
  return df.pipe(op1)
When this is called in a graph:
Copy code
def graph1():
  return pipe_op
There is no reference to op1, only pipe_op. Expected?
c

chris

12/09/2022, 7:05 PM
expected. Dagster does some magic within the body of a graph to construct the DAG - calling ops within other ops does not engage said magic.
🌈 1
🙏 1
in general, calling ops within other ops is considered bad practice bc dagster does not track those invocations as dependencies
p

Peter Davidson

12/10/2022, 12:00 PM
cool thx for clarifying