Created
December 20, 2021 11:28
-
-
Save 1ambda/3afa4925b09a9e494710c14f20e9a30c 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` 내에서 `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