Menu

waffles_transform/csv question

Help
2011-04-12
2012-09-14
  • Nobody/Anonymous

    I have csv files in which 1st line contains titles of columns.

    Is there option to make 'waffles_transform import' treat 1st line as titles ?

    As I can see, it treats 1st line of csv file as data line, correct ?

    To clarify, CSV goes like:

    Color,Make

    Red,Mazda

    Blue,Nissan

    Gray,Toyota

     
  • Mike Gashler

    Mike Gashler - 2011-04-12

    If you add the "-columnnames" option, it will tread the first line as column
    titles.

    Example:

    mike@rib:~/tmp$ waffles_transform import cars.csv -columnnames

    @RELATION Untitled

    @ATTRIBUTE Color {Red,Blue,Gray}

    @ATTRIBUTE Make {Mazda,Nissan,Toyota}

    @DATA

    Red,Mazda

    Blue,Nissan

    Gray,Toyota

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.