Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure ML: How to save and process CSV files with semicolon as delimiter?

Azure ML support says to me that delimiter must be comma, this would cause too much hassle with data having semicolon as separator and with a lot of commas in the cell values.

So how to process semicolon separated CSV files in Azure ML?

like image 223
hhh Avatar asked Jan 25 '17 15:01

hhh


People also ask

How do you handle commas in data when exporting a csv file?

Re: Handling 'comma' in the data while writing to a CSV. So for data fields that contain a comma, you should just be able to wrap them in a double quote. Fields containing line breaks (CRLF), double quotes, and commas should be enclosed in double-quotes.

What is field delimiter in CSV?

with a character such as a comma (,). This character is called the field separator or delimiter. When the field separator (delimiter) is a comma, the file is in comma-separated (CSV) or comma-delimited format. Another popular delimiter is the tab.


1 Answers

Azure ML only accepts the comma , separated CSV. Do a little work around. Open your data file using a text editor. (Notepad will do the trick). Find and replace all semicolons with 'tab' (Make it a TSV) and the commas in data values may not occur a problem then. Make sure to define that the input is a TSV; not a CSV.

like image 146
Haritha Thilakarathne Avatar answered Sep 27 '22 23:09

Haritha Thilakarathne