Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active November 3, 2022 19:33
Show Gist options
  • Save jimathyp/293a9a5b9f5de30679a7dff061727dbd to your computer and use it in GitHub Desktop.
Save jimathyp/293a9a5b9f5de30679a7dff061727dbd to your computer and use it in GitHub Desktop.

Databricks read from CSV

%py
path= ""
df = spark.read.csv(path, header=True)
df.cache()
df.createOrReplaceTempView("csv_data")
display(df)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment