val data = spark.read.option("header","true").option("inferSchema","true").csv("location of file")
import spark.implicits._
//creates year column
val year = data.withColumn("Year",year(data("created_at")))
//creates weekof year column
val week = dat...