Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 2개의 Partition 으로 만든 뒤, JSON 포맷으로 GZIP 압축하여
# airbnb_listings 디렉토리에 (Jupyter Notebook 의 경우 현재 ipynb 노트북이 위치한 디렉토리)
# Overwrite (덮어쓰기) 저장합니다
dfListingSelected\
.repartition(2)\
.write\
.mode("overwrite")\
.format("json")\
.option("compression", "gzip")\
.save("airbnb_listings")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment