Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# create dataframe
data_frame = sql_context.createDataFrame(parsed)
# view the dataframe
data_frame.show(5)
# value counts of gender
data_frame.groupby('gender').count().show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment