Skip to content

Instantly share code, notes, and snippets.

@ozgurshn
Created January 6, 2019 15:33
Show Gist options
  • Save ozgurshn/03782326f77fbff9351e921f4026d000 to your computer and use it in GitHub Desktop.
Save ozgurshn/03782326f77fbff9351e921f4026d000 to your computer and use it in GitHub Desktop.
ParsingOptions MLDataTable
let parsingOptions = MLDataTable.ParsingOptions(containsHeader: true, delimiter: ",", comment: "", escape: "", doubleQuote: false, quote: "", skipInitialSpaces: false, missingValues: [], lineTerminator: "\r", selectColumns:["author","rating","review"], maxRows: nil, skipRows: 0)
var table = try MLDataTable(contentsOf: URL(fileURLWithPath: "/Users/ozgur/Documents/CreateMLFiles/dataset/bitmojiReviews.csv"), options: parsingOptions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment