Skip to content

dataframe writeCSV adds blank line #106

@lynnjo

Description

@lynnjo

Whenever I output a csv, a blank line is always written at the top of the file. This happens whether I"m creating a dataframe from a list of objects, or if I read a csv file into a dataFrame, process it in some manner, and then write it back out. I always get a blank line as the first line. Is this intentional? How to prevent?

I am running a gradle project, using dataframe:0.8.0-dev-952
I have also seen this with the rc-7 load.

Easiest way to reproduce:

  1. Read any comma-separated file into a dataframe,
  2. Write the dataframe out to another file

val inputFile =
val myDF = DataFrame.readCSV(inputFile)

val outputFile =
myDf.writeCSV(outputFile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions