Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# register temporary table
# get the value count using the sql query
gender = sql_context.sql(" SELECT gender, count(*) as freq from sample GROUP BY gender ")
# view the results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment