Created
May 15, 2020 18:36
-
-
Save siakon89/ecfbb7cb3ff7afb3f10dc2ffec29fd15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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