We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bded1c4 commit b39a5f0Copy full SHA for b39a5f0
python/datafusion/dataframe.py
@@ -246,11 +246,10 @@ def sort(self, *exprs: Expr | SortExpr) -> DataFrame:
246
return DataFrame(self.df.sort(*exprs_raw))
247
248
def cast(self, mapping: dict[str, pa.DataType[Any]]) -> DataFrame:
249
- """Cast all or a subset of columns to new dtype.
+ """Cast one or more columns to a different data type.
250
251
Args:
252
- mapping (dict[str, pa.DataType[Any]]): Mapped with column as key and column
253
- dtype as value.
+ mapping: Mapped with column as key and column dtype as value.
254
255
Returns:
256
DataFrame after casting columns
0 commit comments