Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 20, 2021 11:28
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/3afa4925b09a9e494710c14f20e9a30c to your computer and use it in GitHub Desktop.
Save 1ambda/3afa4925b09a9e494710c14f20e9a30c to your computer and use it in GitHub Desktop.
# 이 작업에서는 컬럼 이름을 가공하지 않으므로, `select` 내에서 `col` 함수를 사용하지 않았습니다.
# Spark 는 이와 같이 API 에서 다양한 형태로 사용자의 편의성을 지원합니다.
dfConverted1\
.select("education")\
.distinct()\
.show()
# `show()` 출력 결과
+----------+
| education|
+----------+
| 2n Cycle|
| PhD|
| Master|
|Graduation|
| Basic|
+----------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment