Using the Highcharts editor demo,
http://editor.highcharts.com/full.html
To get some sample data, for the first step in the wizard, click 'sample data' and 'categorised, 4 data columns' (the first option).
Then replace
Jan,7,-0.2,-0.9,3.9
with
"A,B",7,-0.2,-0.9,3.9
and press import. Highcharts complains with error 14:
http://www.highcharts.com/errors/14
It looks like the CSV format isn't fully supported, i.e. commas inside values supported by quotes. Are there any plans to allow that?
I created an issue on Highcharts repository:
https://github.com/highcharts/highcharts/issues/6503
As an alternative you can use different delimeter:
http://api.highcharts.com/highcharts/data.itemDelimiter
Related
We have a .txt file with encoding UTF-16 LE (discussed here, as well). We need to load this file into an Azure SQL database. We are first trying to convert this file to a csv format by using Text Import Wizard of Data Excel 365 wizard. But if we use the ^|^,^|^ as a custom delimiter, the first and last columns still end up with ^|^ value.
Question: What may be possible solutions/work arounds for converting this type of file to csv?
Remarks: This is a huge file (1GB) with about 150 columns. Following is just a sample for explaining the scenario in this post.
Sample of the txt file:
^|^Col0^|^,^|^Col1^|^,^|^Col2^|^,^|^Col3^|^,^|^Col4^|^,^|^Col5^|^,^|^Col6^|^,^|^Col7^|^
^|^1234^|^,^|^4600869848^|^,^|^6000.00^|^,^|^2021-12-20 10:16:19.3600000^|^,^|^False^|^,^|^^|^,^|^^|^,^|^2^|^
^|^5431^|^,^|^3425143451^|^,^|^30000.00^|^,^|^2021-12-13 10:27:44.9030000^|^,^|^False^|^,^|^^|^,^|^^|^,^|^2^|^
.....................
............................
After using the delimiter ^|^,^|^ in Excel text import wizard
Instead of mentioning the ^|^,^|^ as custom delimiter, you can mention comma as a delimiter, that will give you a result like below:
Then you can record a macro to replace the desired characters which is ^|^ after importing is done as mentioned in below link:
Create A Macro Code To Achieve Find And Replace Text In Excel
I have a problem when opening a dataset in WEKA. While in its .csv format all the variables and respective values are clearly distinguished, in WEKA I only have one attribute which looks like this:
PINCP; AGEP; LANX; RACWHT; RACBLK; RACASN; SEX; etc.
and the values associated look similar, being separated by a semicolon as well.
Do you have any suggestions on how to make this work?
Thanks in advance!
CSV stands for comma-separated values. Your dataset, on the other hand, uses semi-colons as separator between cells.
When opening your dataset in the Weka Explorer, check the Invoke options dialog box in the file chooser dialog. Then change the fieldSeparator option from a comma to a semi-colon.
In case you are using the command-line for loading your dataset, use the -F option of the CSVLoader class.
Importing csv in Rapidminer is not loading data properly in the attributes/ columns and returns errors.
I have set the parameter values correctly in the 'Data Import Wizard'.
Column Separation is set to comma and when I check the "Use Quotes" parameter I see that there are too many "?" appear in the columns even though there is data in the actual csv file.
And when I do not check the “Use Quotes” option then I notice that the content of the columns are distributed across different columns, i.e., data does not appear in the correct column. It also gives error for the date column.
How to resolve this? Any suggestions please? I saw a lot of Rapidminer videos and read about it but did not help.
I am trying to import twitter conversations data which I exported from a 3rd party SaaS tool which extracts Twitter data for us.
Could someone help me soon please? Thanks, Geeta
It's virtually impossible to debug this without seeing the data.
The use quotes option requires that each field is surrounded by double quotes. Do not use this if your data does not contain these because the input process will import everything into the first field.
When you use comma as the delimiter, the observed behaviour is likely to be because there are additional commas contained in the data. This seems likely if the data is based on Twitter. This confuses the import because it is just looking for commas.
Generally, if you can get the input data changed, try to get it produced using a delimiter that cannot appear in the raw text data. Good examples would be | or tab. If you can get quotes around the fields, this will help because it allows delimiter characters to appear in the field.
Dates formats can be handled using the data format parameter but my advice is to import the date field as a polynominal and then convert it later to date using the Nominal to Date operator. This gives more control especially when the input data is not clean.
When I export an query result to a csv format flat file in ms access, the text fields are enclosed in quotes. Is it possible to export the text fields values without quotes?
Yes it is possible:
During the export process flow you will have the option to select your own custom formatting and layout. Select this check box and then you will have the opportunity to select whatever delimiter you see fit. See this article for further information.
Here is also an example of how you can write it to a file manually using VBA.
Enjoy!
I have a CSV file that I can open in Excel 2012 and it comes in perfectly. When I try to setup the metadata for this CSV file in Talend the fields (columns) are not splitting the same was as Excel splits them. I suspect I am not properly setting the metadata.
The specific issue is that I have a column with string data in it which may contain commas within the string. For example suppose I have a CSV file with three columns: ID, Name and Age which looks like this:
ID,Name,Age
1,Ralph,34
2,Sue,14
3,"Smith, John", 42
When Excel reads this CSV file it looks at the second element of the third row ("Smith, John") as a single token and places it into a cell by itself.
In Talend it trys to break this same token into two since there is a comma within the token. Apparently Excel ignores all delimeters within a quoted string while Talend by default does not.
My question is how to I get Talend to behave the same as Excel?
if you use tfileinputdelimited component to read this csv file, you can use delimeter as "," and under csv options properties of this component you should enable Text Enclosure """ option or even if you use metadata there would be an option to define string/text enclosure - here you should mention """ to resolve your problem