yes you can remove the headers by removing the first row can first() or head() to do that
Thanks, Divya On 27 April 2016 at 13:24, Ashutosh Kumar <kmr.ashutos...@gmail.com> wrote: > I see there is a library spark-csv which can be used for removing header > and processing of csv files. But it seems it works with sqlcontext only. Is > there a way to remove header from csv files without sqlcontext ? > > Thanks > Ashutosh >