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
4
votes
5 answers

Turn colum containing list into dummies

I have a dataframe with a list of (space-separated) years that I would like to turn into dummies for each year. Consider the following toy data: raw <- data.frame(textcol = c("case1", "case2", "case3"), years=c('1996 1997 1998','1997 1999 2000',…
Ivo
  • 3,890
  • 5
  • 22
  • 53
4
votes
1 answer

Integration testing garbage data

I have set up integration testing using MSTest. My integration tests create fake data and insert them into the database (real dependencies). For every business object, I have a method like this, which creates a "Fake" and inserts it into the db:…
Vin Shahrdar
  • 1,151
  • 1
  • 12
  • 30
4
votes
2 answers

Randomly create files and folders size of in 1M, 10M, 100M, 1G, 10G

I have searched a lot but couldn't find a solution for this. Insida a folder, how could I create random files and folders that will be size of in 1M, 10M, 100M, 1G, 10G. Each created folders also needs to have a randomly created file in it.
alper
  • 2,919
  • 9
  • 53
  • 102
4
votes
4 answers

Automatically generate sql insert statement with dummy data

Possible Duplicate: Quickest way to fill SQL Table with Dummy Data I'm looking for a tool that will generate insert statement for an existing database filled with dummy data. This is meant to allow testing of the system. I'm thinking about…
Omri
  • 723
  • 1
  • 11
  • 13
4
votes
1 answer

Pandas: map values of categorical variable to a predefined list of dummy columns

I have a categorical variable with known levels (e.g. hour that just contains values between 0 and 23), but not all of them are available right now (say, we have measurements from between 0 and 11 o'clock, while hours from 12 to 23 are not covered),…
ffriend
  • 27,562
  • 13
  • 91
  • 132
4
votes
2 answers

How to use dummy variable to represent categorical data in python scikit-learn random forest

I'm generating feature vector for random forest classifier of scikit-learn . The feature vector represents the name of 9 protein amino acid residues. There are 20 possible residue names. So, I use 20 dummy variables to represent one residue name,…
Lucy
  • 43
  • 1
  • 5
3
votes
2 answers

Generating dummy data for my web application - looking for dictionaries

Sorry if this is off topic - but it is certainly programming related. I need to test my web application at scale (concurrent users and amount of data in system). For the latter, I need some way of generating dummy data for a variety of types (name,…
calumbrodie
  • 4,722
  • 5
  • 35
  • 63
3
votes
0 answers

Is there a dependency that can generate dummy data list according to the sampledata used in recyclerview items?

So I have been thinking about it for a long time. Is there a way that can generate a List of Custom Class according to the sampledata used in the recycler view item? It can help in testing UI and save alot…
3
votes
2 answers

mysql select dummy record when JOIN condition not met

I have two tables, one a record of hits, the other a user table. If as user is logged in, the hit is recorded with that user's ID. If the user is not logged in, the hit is logged as user_id = 0 When I run a report, I want to JOIN the hits against…
julio
  • 6,630
  • 15
  • 60
  • 82
3
votes
8 answers

Is creating a "dummy record" to force data-base obey the business logic, a good idea or a dumb one?

In some projects I see that a dummy record is needed to create in Db in order to keep the business logic go on without breaking the Db constraints. So far I have seen its usage in 2 ways: By adding a field like IsDummy By adding a field something…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
3
votes
3 answers

Creating Dummy Variables from List

So I'm trying to create dummy variables to attach to a data frame based on whether or not a specific column of the frame has specific words in it. The column would look something like this: dumcol = c("good night moon", "good night room", "good…
riders994
  • 1,246
  • 5
  • 13
  • 33
3
votes
3 answers

Create a binary indicator matrix (Boolean matrix) in R

I have a list of data indicating attendance to conferences like this: Event Participant ConferenceA John ConferenceA Joe ConferenceA Mary ConferenceB John …
Brian
  • 7,098
  • 15
  • 56
  • 73
3
votes
5 answers

Dummy ObjectList generator for unit testing

Can anyone inform whether there is any good framework in c# that will generate dummy objects and lists so that we don't need to generate the stub data manually?
maeenul
  • 91
  • 2
  • 5
2
votes
3 answers

What does $dummy and non-parameter split mean in Perl?

I need some help decoding this perl script. $dummy is not initialized with anything throughout anywhere else in the script. What does the following line mean in the script? and why does it mean when the split function doesn't have any…
alvas
  • 115,346
  • 109
  • 446
  • 738
2
votes
1 answer

How to parse pandas Dataframe object

I read csv file in pandas Dataframe and then get its dummy and concat them, but for example I Have column named "Genre" and it contains "comedy, drama" and "action, comedy" so when I get dummy and concat them it makes a object for each sentence but…
yasi
  • 397
  • 1
  • 4
  • 14
1
2
3
10 11