Skip to content

Instantly share code, notes, and snippets.

@mkaranasou
Created February 5, 2021 12:09
Show Gist options
  • Save mkaranasou/d45b98c0b4b024dbd0a3cfc76a9714da to your computer and use it in GitHub Desktop.
Save mkaranasou/d45b98c0b4b024dbd0a3cfc76a9714da to your computer and use it in GitHub Desktop.
Get the data type of a spark dataframe column.
df = spark.DataFrame(...)
dict(df.dtypes).get('features')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment