Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 27, 2021 11:39
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/f4e5220165ce84955a7ae9ca7406267e to your computer and use it in GitHub Desktop.
Save 1ambda/f4e5220165ce84955a7ae9ca7406267e to your computer and use it in GitHub Desktop.
from pyspark.sql.functions import *
from pyspark.sql.types import *
from pyspark.sql.window import Window
dfListingCalendarRaw = spark.read.load("/FileStore/tables/airbnb_calendar.csv",
format="csv",
inferSchema="true",
header="true")
dfListingMeta = spark.read.load("/FileStore/tables/airbnb_listings.csv",
format="csv",
inferSchema="true",
multiline = "true",
header="true")
dfListingReview = spark.read.load("/FileStore/tables/airbnb_reviews.csv",
format="csv",
inferSchema="true",
multiline = "true",
header="true")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment