Skip to content

Commit b39a5f0

Browse files
committed
chore: improve docstring
1 parent bded1c4 commit b39a5f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/datafusion/dataframe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,10 @@ def sort(self, *exprs: Expr | SortExpr) -> DataFrame:
246246
return DataFrame(self.df.sort(*exprs_raw))
247247

248248
def cast(self, mapping: dict[str, pa.DataType[Any]]) -> DataFrame:
249-
"""Cast all or a subset of columns to new dtype.
249+
"""Cast one or more columns to a different data type.
250250
251251
Args:
252-
mapping (dict[str, pa.DataType[Any]]): Mapped with column as key and column
253-
dtype as value.
252+
mapping: Mapped with column as key and column dtype as value.
254253
255254
Returns:
256255
DataFrame after casting columns

0 commit comments

Comments
 (0)