Skip to content

Instantly share code, notes, and snippets.

@yvan
Last active February 22, 2023 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yvan/d5d9973b44ca3303dab1b2dda826d565 to your computer and use it in GitHub Desktop.
Save yvan/d5d9973b44ca3303dab1b2dda826d565 to your computer and use it in GitHub Desktop.
Simple Transform
# in pandas
df[col1] = df[col1]*5
# in spark
df = df.withColumn(col1, F.col(col1)*5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment