Skip to content

Commit 7228ca8

Browse files
authored
Format docstring to render in online documentation
1 parent b2fc588 commit 7228ca8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

python/datafusion/dataframe.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,7 @@ def with_columns(
168168
By passing expressions, iteratables of expressions, or named expressions. To
169169
pass named expressions use the form name=Expr.
170170
171-
Example usage:
172-
173-
The following will add 4 columns labeled a, b, c, and d.
171+
Example usage: The following will add 4 columns labeled a, b, c, and d::
174172
175173
df = df.with_columns(
176174
lit(0).alias('a'),
@@ -179,11 +177,11 @@ def with_columns(
179177
)
180178
181179
Args:
182-
*exprs: Name of the column to add.
183-
**named_exprs: Expression to compute the column.
180+
exprs: Either a single expression or an iterable of expressions to add.
181+
named_exprs: Named expressions in the form of ``name=expr``
184182
185183
Returns:
186-
DataFrame with the new column.
184+
DataFrame with the new columns added.
187185
"""
188186

189187
def _simplify_expression(

0 commit comments

Comments
 (0)