cast multiple columns #3868
-
is there a simpler way ?
|
Beta Was this translation helpful? Give feedback.
Answered by
universalmind303
Feb 27, 2025
Replies: 1 comment
-
@djouallah you can cast ALL columns via cast all columns to stringdf.select(daft.col("*").cast(daft.DataType.string())) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
universalmind303
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@djouallah you can cast ALL columns via
col("*")
, but we don't yet have any way to select columns via a pattern or datatype.cast all columns to string