Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Select one column from your DataFrame
df.select("column").show()
# Select multiple columns from your DataFrame
df.select("column1", "column2").show()
# Select a column and add 1 to every entry
df.select(df.column + 1).show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.