We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8582e49 commit 7836164Copy full SHA for 7836164
python/datafusion/functions.py
@@ -1587,7 +1587,7 @@ def arrow_cast(expr: Expr, data_type: Expr) -> Expr:
1587
---------
1588
>>> ctx = dfn.SessionContext()
1589
>>> df = ctx.from_pydict({"a": [1]})
1590
- >>> data_type = dfn.string_literal("Float64")).alias("c")
+ >>> data_type = dfn.string_literal("Float64")
1591
>>> result = df.select(dfn.functions.arrow_cast(dfn.col("a"), data_type).alias("c"))
1592
>>> result.collect_column("c")[0].as_py()
1593
1.0
0 commit comments