dataset

Dividing a matrix into two parts

僤鯓⒐⒋嵵緔 提交于 2020-01-22 02:56:08
问题 I am trying to classify my dataset. To do this, I will use the 4th column of my dataset. If the 4th column of the dataset is equal to 1, that row will added in new matrix called Q1 . If the 4th column of the dataset is equal to 2, that row will be added to matrix Q2 . My code: i = input('Enter a start row: '); j = input('Enter a end row: '); search = importfiledataset('search-queries-features.csv',i,j); [n, p] = size(search); if j>n disp('Please enter a smaller number!'); end for s = i:j

Wrong number of values when importing csv in Weka

社会主义新天地 提交于 2020-01-21 05:01:27
问题 I want to open a csv file (saved from openoffice calc) in weka. I keep getting an error: "wrong number of values. 140 read, 139 expected on line 3." The csv was already fixed with quotes around the labels. And I count 140 values on the first lines. What is wrong here? Link to the file. 回答1: Turns out there was an value somewhere for beyond sight in the excel file I was exporting. I noticed it because all the rows ended with a comma instead of nothing. Carefully selected only the right reach,

How to update Dataset Parent & Child tables with Autogenerated Identity Key?

旧城冷巷雨未停 提交于 2020-01-19 12:56:44
问题 I am using ADO.NET Datasets in my VB Applications. I have a typed dataset with one Parent table and many child tables. I want to generate Identity Key when I insert data into Parent Table and then update the data in all child tables with the Same key (As Foregin key). At last, I want to update the dataset in Database(SQL Server08). Well, the above thing can be possible by first inserting Parent Table in Database directly, get the Identity column and than use to for Child tables. But I want to

How can I count and log the number of rows in a sheet with a specific month/year value

旧城冷巷雨未停 提交于 2020-01-17 11:16:44
问题 I've downloaded a dataset which details all of the car accidents reported in England between January 1979 and December 2004 - this file is in csv format and is understandably quite large (6,224,199 rows, to be exact). Because the size of the file exceeds the number of rows that Excel 2010 can handle, I'd have to split the file into smaller ones in order to open it all at once in Excel. I tried using Notepad and Notepad++, but Notepad crashed, and Notepad++ refused to open such a large (720MB)

How can I count and log the number of rows in a sheet with a specific month/year value

▼魔方 西西 提交于 2020-01-17 11:15:56
问题 I've downloaded a dataset which details all of the car accidents reported in England between January 1979 and December 2004 - this file is in csv format and is understandably quite large (6,224,199 rows, to be exact). Because the size of the file exceeds the number of rows that Excel 2010 can handle, I'd have to split the file into smaller ones in order to open it all at once in Excel. I tried using Notepad and Notepad++, but Notepad crashed, and Notepad++ refused to open such a large (720MB)

How can I count and log the number of rows in a sheet with a specific month/year value

谁说胖子不能爱 提交于 2020-01-17 11:14:24
问题 I've downloaded a dataset which details all of the car accidents reported in England between January 1979 and December 2004 - this file is in csv format and is understandably quite large (6,224,199 rows, to be exact). Because the size of the file exceeds the number of rows that Excel 2010 can handle, I'd have to split the file into smaller ones in order to open it all at once in Excel. I tried using Notepad and Notepad++, but Notepad crashed, and Notepad++ refused to open such a large (720MB)

How to enable API button for CKAN data set?

守給你的承諾、 提交于 2020-01-17 02:50:07
问题 I have successfully added a data set for the CKAN site. It enables to preview the data set as well. Below is the URL for the data set testckan.com:5000/dataset/my-data1/resource/4c2647ca-a4ab-4d20-8119-5c3da9d4ae14 By adding api/rest/ to the URL as below enables to expose data sets as a JSON service. testckan.com:5000/api/rest/dataset/my-data1/resource/4c2647ca-a4ab-4d20-8119-5c3da9d4ae14 All I want to do is add an button so that user can view the data set as a JSON rather than typing it in

Visual Basic 2010 DataSet

与世无争的帅哥 提交于 2020-01-17 01:18:18
问题 I'm using Visual Studio 2010 and I'm working on a windows application form. I'm struggling with our database. I can connect and retrieve Data in the Grid View. But I don't want to display the records - I want to put a specific row column in a variable (in short I want to work with it). My DataSet is called ProductionDataSet . The Table is called Employee and has four columns called Employee , First_Name , Last_Name and Status . How do I now store lets say the entry in column 4 and row 5 in

Is there a way to save a list of objects in dataset in c#

ぐ巨炮叔叔 提交于 2020-01-16 11:49:30
问题 I want to save a list of dates in an xml, I want to use dataset to achieve the task, I do the same to a database using Entity Framework. This allows me to access the dates using event.eventDates.start but in the dataset I cannot achieve it. public class Event { [Key] public string id { get; set; } public virtual ICollection<Date> eventDates { get; set; } } Date class public class Date { public DateTime start { get; set; } public DateTime end { get; set; } } When using entity framework I can

SAS: creating multiples files from multiple data sets

落花浮王杯 提交于 2020-01-16 00:54:08
问题 I have 24 datasets that are structured in the same way. By that I mean the same column headers (time, date, price, stock symbol), data set structure etc. I don't wish to append all 24 files since one data set is to big to handle. I named all my data sets with the name "file1 file2 file3 file4....up to file24". What I want to do is the following: For example change the date format in all of my 24 files at once; Be able to extract from each file# a specific stock symbol like 'Dell' and append