Skip to content

Commit

Permalink
chore: improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
ion-elgreco committed Oct 13, 2024
1 parent bded1c4 commit b39a5f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/datafusion/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,10 @@ def sort(self, *exprs: Expr | SortExpr) -> DataFrame:
return DataFrame(self.df.sort(*exprs_raw))

def cast(self, mapping: dict[str, pa.DataType[Any]]) -> DataFrame:
"""Cast all or a subset of columns to new dtype.
"""Cast one or more columns to a different data type.
Args:
mapping (dict[str, pa.DataType[Any]]): Mapped with column as key and column
dtype as value.
mapping: Mapped with column as key and column dtype as value.
Returns:
DataFrame after casting columns
Expand Down

0 comments on commit b39a5f0

Please sign in to comment.