Import .parquet files

val df = spark.read.parquet("/data")

Show columns on imported DataFrame

df.columns.foreach(println)

Show data from DataFrame

df.show()

Filter and Order data from DataFrame

val sortedDF = resultDF
  .filter($"date" === "2023-06")
  .orderBy(desc("suma_visits"))

Leave a Reply

Your email address will not be published. Required fields are marked *