Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 23, 2021 23:12
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/abf9f7345cf29b1de6c6cc255f7193e5 to your computer and use it in GitHub Desktop.
Save 1ambda/abf9f7345cf29b1de6c6cc255f7193e5 to your computer and use it in GitHub Desktop.
# 디렉토리 내의 분할된 모든 JSON 파일을 다 읽습니다.
dfListingJson = spark.read.format("json").load("./airbnb_listings")
dfListingJson.count()
dfListingJson.rdd.getNumPartitions()
dfListingJson.printSchema(truncate=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment