Skip to content

cast multiple columns #3868

Answered by universalmind303
djouallah asked this question in Q&A
Discussion options

You must be logged in to vote

@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

df.select(daft.col("*").cast(daft.DataType.string()))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by universalmind303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants