Questions tagged [dataset]

A dataset is a collection of data, generally represented in tabular form, with columns signifying different variables and rows signify different members of the set. If you are looking for a freely available dataset for any purpose, please consider asking your question on https://opendata.stackexchange.com.

11414 questions
15
votes
9 answers

DataSet class in Java?

Does anyone know if there is a DataSet class in Java like there is in .Net? I am familiar with EJB3 and the "java way" of doing data. However, I really still miss the seamless integration between database queries, xml and objects provided by the…
User1
  • 39,458
  • 69
  • 187
  • 265
14
votes
7 answers

Convert Dataset to XML

I've been stuck with this problem for a few hours and can't seem to figure it out, so I'm asking here :) Alright, I've got this function: private void XmlDump() { XDocument doc = new XDocument(new XDeclaration("1.0", "utf-8", "yes")); …
NomenNescio
  • 2,899
  • 8
  • 44
  • 82
14
votes
3 answers

C# XMLDocument to DataTable?

I assume I have to do this via a DataSet, but it doesn't like my syntax. I have an XMLDocument called "XmlDocument xmlAPDP". I want it in a DataTable called "DataTable dtAPDP". I also have a DataSet called "DataSet dsAPDP". - if I do DataSet…
Matt Dell
  • 9,205
  • 11
  • 41
  • 58
14
votes
6 answers

In Delphi, is TDataSet thread safe?

I'd like to be able to open a TDataSet asynchronously in its own thread so that the main VCL thread can continue until that's done, and then have the main VCL thread read from that TDataSet afterwards. I've done some experimenting and have gotten…
Liron Yahdav
  • 10,152
  • 8
  • 68
  • 104
14
votes
1 answer

Could Keras prefetch data like tensorflow Dataset?

In TensorFlow's Dataset API, we can use dataset.prefetch(buffer_size=xxx) to preload other batches' data while GPU is processing the current batch's data, therefore, I can make full use of GPU. I'm going to use Keras, and wonder if keras has a…
Shouyu Chen
  • 655
  • 8
  • 16
14
votes
8 answers

Download Kaggle Dataset by using Python

I have trying to download the kaggle dataset by using python. However i was facing issues by using the request method and the downloaded output .csv files is a corrupted html files. import requests # The direct link to the Kaggle data set data_url…
Johnson
  • 141
  • 1
  • 1
  • 4
14
votes
5 answers

How do I use lambda expressions to filter DataRows?

How can I search rows in a datatable for a row with Col1="MyValue" I'm thinking something like Assert.IsTrue(dataSet.Tables[0].Rows. FindAll(x => x.Col1 == "MyValue" ).Count == 1); But of course that doesn't work!
Bob
  • 243
  • 1
  • 2
  • 7
14
votes
1 answer

PHP Script to populate MySQL tables

Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and…
Robert Swisher
  • 1,300
  • 11
  • 12
14
votes
4 answers

Return multiple recordsets from stored proc in C#

I am having to convert an ASP classic system to C# I have a stored procedure that can return up to 7 recordsets (depending on the parameters passed in). I need to know how I can simply return all the recordsets as individual DataTables so that I can…
user2334626
  • 197
  • 1
  • 1
  • 12
14
votes
1 answer

Get free historic stock market/exchange data (e.g. S&P 500, NYSE)?

I am developing an application that relies on stock market information. For the moment, I use Yahoo Finance CSV API. Unfortnautely OpenTick stopped its service, Google Finance API will soon, too. I have a list of stock symbols I am interested in…
Gnark
  • 4,080
  • 7
  • 33
  • 44
13
votes
2 answers

How to create excel file with multiple sheets from DataSet using C#

How to create excel file with multiple sheets from DataSet using C#? I have successfully created an excel file with single sheet. But I am not able to do that for multiple sheets.
HarshJain
  • 327
  • 1
  • 4
  • 12
13
votes
3 answers

it's possible to create a fake data field in a delphi dataset?

I want to create a 'fake' data field in a DataSet (not ClientDataSet): the field should not be stored in the db it's not a calculated field (the user should be allowed to enter input data) the field has business logic meaning, so after the user…
pragmatic_programmer
  • 3,566
  • 3
  • 29
  • 36
13
votes
3 answers

How can I handle this datasets to create a datasetDict?

I'm trying to build a datasetDictionary object to train a QA model on PyTorch. I have these two different datasets: test_dataset Dataset({ features: ['answer_text', 'answer_start', 'title', 'context', 'question', 'answers', 'id'], num_rows:…
Peppe95
  • 133
  • 1
  • 1
  • 6
13
votes
5 answers

.NET - How do I retrieve specific items out of a Dataset?

I have the following code which connects to a database and stores the data into a dataset. What I need to do now is get a single value from the data set (well actually its two the first row column 4 and 5) OdbcConnection conn = new…
c11ada
  • 4,302
  • 15
  • 48
  • 62
13
votes
3 answers

C# (Visual studio): Correlation between database, dataset, binding source

I am just learning C# through Visual Studio 2008? I was wondering what exactly is the correlation between dabases, datasets and binding sources? As well, what is the function of the table adapter?
Northener
  • 863
  • 4
  • 9
  • 14