Skip to content
Discussion options

You must be logged in to vote

Hello! Assuming you have a DataframeSchema named schema, then use the following dictionary comprehension for the dtype argument:

{col: dtype_pa.type for col, dtype_pa in schema.dtypes.items()}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ropeladder
Comment options

Answer selected by chris-wright-nl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants