Scala, Mllib, Machine Learning, Linear Regression, Spark.
headers option("inferSchema","true"). //consider data types format("csv"). //expect a csv file load("Ecommerce.csv") //load the file in this path Let’s check the schema of the data frame. //check the schema data.printSchema /* root |-- Email: string (nullable = true) |-- Avatar: string (nullable =