I would like to create a Spark dataframe (without double quotes) by reading input from csv file as mentioned below.
Here is my code, but no use so far.
val empDF = spark.read.format("com.databricks.spark.csv")
.option("header", "true")
.option("inferSchema", "true")
.option("quote", "\"")
.option("escape", "\"")
.load("EmpWithQuotes.csv")
.toDF()
My expected output is not to add double quotes to out but I am getting an output with junk.
+---+-----+----------+----+
|eno|ename| eloc|esal|
+---+-----+----------+----+
| 11|�abx�| �chennai�|1000|
| 22|�abr�| �hyd�|3000|
