Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 20, 2021 14:50
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 1ambda/0cca64857b000e197d14533f4d89de0e to your computer and use it in GitHub Desktop.
Save 1ambda/0cca64857b000e197d14533f4d89de0e to your computer and use it in GitHub Desktop.
# repartition 함수를 통해 파티션 숫자를 1 -> 5 로 늘립니다.
dfPartitioned = dfConverted.repartition(5)
print(f"Partition Count of Dataframe dfPartitioned:\t{dfPartitioned.rdd.getNumPartitions()}")
Partition Count of Dataframe dfPartitioned: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment