Skip to content

Instantly share code, notes, and snippets.

@1ambda
Created December 20, 2021 11:41
Embed
What would you like to do?
import org.apache.spark.sql.functions._
import org.apache.spark.sql.types._
// 만약 Databricks 노트북을 사용한다면 경로를
// `/FileStore/tables/marketing_campaign.csv"` 로 변경할 수 있습니다.
val df = spark.read
.format("csv")
.option("format", "csv")
.option("sep", "\t")
.option("inferSchema", "true")
.option("header", "true")
.load("marketing_campaign.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment