DataFrame.explain(show_optimized: bool = False, simple=False) None[source]#

Prints the logical plan that will be executed to produce this DataFrame. Defaults to showing the unoptimized plan. Use show_optimized to show the optimized one.

  • show_optimized (bool) – shows the optimized QueryPlan instead of the unoptimized one.

  • simple (bool) – Whether to only show the type of logical op for each node in the logical plan, rather than showing details of how each logical op is configured.