Created
December 23, 2021 23:09
-
-
Save 1ambda/25fc2e7bf7deedaa1a0aaeef0cf7e13c 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
from pyspark.sql.types import * | |
from pyspark.sql.functions import * | |
from pyspark.sql.window import Window | |
dfListing = spark.read.load("./airbnb_listings.csv", | |
format="csv", inferSchema=True, header=True, | |
quote='"', escape='"', sep=',', multiline=True) | |
dfListing.printSchema() | |
dfListing.count() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment