I have csv file as below
name|age|county|state|country
"alex"john"|"30"|"burlington"|"nj"|"usa"
I use spark to read the csv file
input_df = spark.read.format('csv').options(header='true', inferSchema='false', sep='|').load('s3://path_to_file')
display(input_df)
Output (Not sure why we have quotes around alex"john but not around other fields)
name age county state country
"alex"john" 30 burlington nj usa
Expected output:
name age county state country
alex"john 30 burlington nj usa