Questions tagged [dummy-data]

Placeholder used for operational or testing purposes.

Dummy-data is useless information reserving a operational information is normally present.

Dummy-data may also be used in testing to properly initialize values which are not intended to be evaluated by the test.

http://en.wikipedia.org/wiki/Dummy_data

164 questions
50
votes
3 answers

Quickest way to fill SQL Table with Dummy Data

What is the quickest way to fill a SQL table with dummy data? I have a wide table with about 40 fields of different kinds (int, bit, varchar, etc.) and need to do some performance testing. I'm using SQL Server 2008.
Alex
  • 75,813
  • 86
  • 255
  • 348
38
votes
4 answers

Create dummies from column with multiple values in pandas

I am looking for for a pythonic way to handle the following problem. The pandas.get_dummies() method is great to create dummies from a categorical column of a dataframe. For example, if the column has values in ['A', 'B'], get_dummies() creates 2…
mkln
  • 14,213
  • 4
  • 18
  • 22
29
votes
14 answers

What is an easy way to stub / dummy a restful web service?

I want to create an android application, this application will make RESTful calls to a web service to obtain some data. I know what the RESTful interface will be, but I don't want the hassle of creating my own implementation. Is there an easy way to…
Jimmy
  • 16,123
  • 39
  • 133
  • 213
27
votes
8 answers

Generate dummy files in bash

I'd like to generate dummy files in bash. The content doesn't matter, if it was random it would be nice, but all the same byte is also acceptable. My first attempt was the following command: rm dummy.zip; touch dummy.zip; x=0; while [ $x -lt 100000…
jabal
  • 11,987
  • 12
  • 51
  • 99
21
votes
3 answers

Python JSON dummy data generation from JSON schema

I am looking for a python library in which I can feed in my JSON schema and it generates dummy data. I have worked with a similar library in javascript dummy-json. Does anyone about a library which can do the same in python.
user1733735
  • 423
  • 1
  • 6
  • 20
17
votes
1 answer

scikit learn: how to check coefficients significance

i tried to do a LR with SKLearn for a rather large dataset with ~600 dummy and only few interval variables (and 300 K lines in my dataset) and the resulting confusion matrix looks suspicious. I wanted to check the significance of the returned…
dadam
  • 181
  • 1
  • 1
  • 6
12
votes
2 answers

Does MailChimp have a sandbox API with dummy data in it for testing?

I'd like to start using the MailChimp API to create a utility that simply pulls some metrics from a user's account, such as subscribers, last campaign date (not sure if that one is available yet), open rate, etc. One critical issue I'm facing is…
Drewdavid
  • 3,071
  • 7
  • 29
  • 53
8
votes
1 answer

Java: how to use dummy node or mark a node as dummy node

A question asking you to delete the middle node in a linked list, only that node is give. The way to solve the problem is copy middle.next.element to middle.element and then delete middle.next by doing middle.next=middle.next.next There's a special…
fuiiii
  • 1,359
  • 3
  • 17
  • 33
8
votes
1 answer

R-generate a "missing values variable"

I am using R to generate examples of how to deal with missing data for the statistics class I am teaching. One method requires generating a "missing values binary variable", with 0 for cases containing missing values, and 1 with no missing values.…
jeramy townsley
  • 240
  • 3
  • 18
8
votes
5 answers

how do you make a For loop when you don't need index in python?

If I need a for loop in Python: for i in range(1,42): print "spam" but don't use the i for anything, pylint complains about the unused variable. How should I handle this? I know you can do this: for dummy_index in range(1,42): print…
Jacxel
  • 1,634
  • 8
  • 22
  • 33
7
votes
2 answers

list of 2ld.1ld (2nd level domain.1st(top)level domain) names?

I am looking for a list of (doesnt matter if its not all, just needs to be big as its for generating dummy data) Im looking for a list like .net.nz .co.nz .edu.nz .govt.nz .com.au .govt.au .com .net any ideas where I can locate a list?
Hailwood
  • 89,623
  • 107
  • 270
  • 423
7
votes
1 answer

Pandas: get_dummies vs categorical

I have a dataset which has a few columns with categorical data. I've been using the Categorical function to replace categorical values with numerical ones. data[column] = pd.Categorical.from_array(data[column]).codes I've recently ran across the…
sapo_cosmico
  • 6,274
  • 12
  • 45
  • 58
7
votes
3 answers

How to insert Huge dummy data to Sql server

Currently development team is done their application, and as a tester needs to insert 1000000 records into the 20 tables, for performance testing. I gone through the tables and there is relationship between all the tables actually. To insert that…
Chaitanya Phani
  • 127
  • 1
  • 2
  • 12
6
votes
5 answers

Adding a Constant Row Result to SQL Query - MS Access

Say I have a table "tblItems": *ID* | *Name* 1 | First Item 2 | Second Item and I want this to be populated in a drop-down in a form. How would I add a row: ALL | SHOW ALL to become *ID* | *Name* 1 | …
StuckAtWork
  • 1,613
  • 7
  • 23
  • 37
5
votes
2 answers

back and forth to dummy variables in R

So, I've been using R on and off for two years now and been trying to get this whole idea of vectorization. Since I deal a lot with dummy variables from multiple response sets from surveys I thought it would be interesting to learn with this…
fioghual
  • 509
  • 3
  • 11
1
2 3
10 11