2021-10-31

pyspark - read csv with custom row delimiter

how can I read a csv file with custom row delimiter (\x03) using pyspark? I tried the following code but it did not work.

df = spark.read.option("lineSep","\x03").csv(path)
display(df)


from Recent Questions - Stack Overflow https://ift.tt/3jRYqzT
https://ift.tt/eA8V8J

No comments:

Post a Comment