Skip to content

Commit eb21c9b

Browse files
committed
Minor bugfix
1 parent a6baba1 commit eb21c9b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

python/datafusion/dataframe.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -760,19 +760,16 @@ def join_on(
760760
exprs = [expr.expr for expr in on_exprs]
761761
return DataFrame(self.df.join_on(right.df, exprs, how))
762762

763-
def explain(self, verbose: bool = False, analyze: bool = False) -> DataFrame:
764-
"""Return a DataFrame with the explanation of its plan so far.
763+
def explain(self, verbose: bool = False, analyze: bool = False) -> None:
764+
"""Print an explanation of the DataFrame's plan so far.
765765
766766
If ``analyze`` is specified, runs the plan and reports metrics.
767767
768768
Args:
769769
verbose: If ``True``, more details will be included.
770770
analyze: If ``Tru`e``, the plan will run and metrics reported.
771-
772-
Returns:
773-
DataFrame with the explanation of its plan.
774771
"""
775-
return DataFrame(self.df.explain(verbose, analyze))
772+
self.df.explain(verbose, analyze)
776773

777774
def logical_plan(self) -> LogicalPlan:
778775
"""Return the unoptimized ``LogicalPlan``.

0 commit comments

Comments
 (0)