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
0
votes
1 answer

Need help creating a pseudo-dummy variable that instead of '1' uses the value from another column

I have a dataframe that looks like this : A B C 34 x a 3 y b 23 y a 40 x b Essentially, cols B and C need to become dummy variables, with headers B_x, B_y, C_a, C_b. The function is almost exactly how get_dummies()…
Negative Correlation
  • 813
  • 1
  • 11
  • 26
0
votes
2 answers

How to run SQL Expression Query without any underlying database

I have a situation where the user enters some validation input in SQL format. This SQL query is just using basic sql date functions but not using any databse column. Sample query: Select UNIX_TIMESTAMP(NOW()) < UNIX_TIMESTAMP(CASE WHEN…
dev541
  • 53
  • 2
  • 6
0
votes
1 answer

r- Duplicated rows in dummyVars

I have a dataframe in R, here there is an example asdf <- data.frame(id = c(2345, 7323, 2345, 4533), place = c("Home", "Home", "Office", "Office"), sex = c("Male", "Male", "Male", "Female"), consumed =…
0
votes
1 answer

Can't load Caffe model with DummyData layer

when I try to load a caffe model with OpenCV 3.4.3, I get the error what(): OpenCV(3.4.3) /home/schneider/libs/opencv-3.4.3/modules/dnn/src/dnn.cpp:412: error: (-2:Unspecified error) Can't create layer "DummyData1" of type "DummyData" in function…
vimansa
  • 1
  • 3
0
votes
2 answers

Dummy for time series in R

I have a dataset in which one column represents monthly Date:from 02/01/2004 to 09/01/2008, i have to create a dummy for the Dates in 2008. I tried to use: dummy <- as.numeric(Date >= 01/01/2008), but R said me that: ">= is not meaningful for…
agripaper
  • 3
  • 2
0
votes
0 answers

Pythonic way of generating dummy data efficiently

Trying to generate a billion rows of random data on a box with below configuration, only the data creation is running on this box. Only looking for directions on what methods can be used to improve performance. Running : Python 2.7 OS …
Dvusrgme
  • 369
  • 1
  • 5
  • 13
0
votes
2 answers

google chrome extension: webdb or not?

I am creating a google chrome extension to help with testing. The extension basically fills and input with dummy data. I need to store this dummy data somehow. The dummy data will not change, so hard coding it is acceptable. What would the best way…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
0
votes
1 answer

Creating Dummy Data

what is the difference between ==1 and ==-1 in these following codes? mydata1=data.frame(State=ifelse(sign(rnorm(6))==-1,"Mina","Mani"),Q1=sample(1:6)) mydata2= data.frame(State=ifelse(sign(rnorm(6))==1,"Mina","Mani"),Q1=sample(1:6))
Vin
  • 19
  • 2
0
votes
2 answers

Dummy variable for year in R

So my data set consists 7 variables and one of them is date from 2004 to 2008, and I want to create a dummy variable for the year of 2008. Specifically, I want to know what happened before 2008 and after and have levels 0 and 1, but I don't know how…
Elen
  • 3
  • 4
0
votes
1 answer

Not able to use the another field value in random function

I am generating the data from the Mockaroo - Random data generator Scenario is : I have one field Income (value can be 0 to 99999) and I have another field Net Income i want value of this field must be less then Income So, any one can suggest me…
Akshay Vakharia
  • 79
  • 1
  • 12
0
votes
1 answer

Adding dummy rows in a data frame containing NA to increase the row count of a data frame

Here is the code I am using: for(i in 1:(max_length - nrow(dat2006))){ datDummy[nrow(datDummy + i), ] <- NA } Can someone please suggest a better approach @akrun: Example df <- data.frame("var1" = c(1,2,3)) df Original Data Frame var1 1 …
Rahul Parmar
  • 75
  • 1
  • 5
0
votes
1 answer

Sample/Dummy Data Generation in Rails 3

Is there a standard gem for creating data for testing purposes for Rails 3? I am interested in using Faker or Forgery but is there a better approach? What is the best way to generate and use sample data?
amaseuk
  • 2,147
  • 4
  • 24
  • 43
0
votes
1 answer

How to populate existing database with dummy data in MySQL Workbench?

Is there a way to populate (generate in an easy way) a dummy data in MySQL Workbench based on an existing database schema ? I know I can select database, and click on "Select Rows - Limit 1000" and start inserting values for each row. But that would…
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
0
votes
1 answer

Dummy/Temporary data to build a dynamic UI

I'm entry level developer and i got to build some parts of an app. The backend of the app isn't ready yet, so i need some kind of dummy data to work with since i need to build ListViews etc with the data from backed.The way i'll get the data is…
0
votes
1 answer

How do I create an example reference list within the Data Tab of the Baqend Dashboard?

In my Baqend-hosted application, I have created a "Family" Class, with some modeling attributes and a list of User references. Now I want to add some dummy data using the Data tab in the Baqend dashboard. How do I add Users to a List of User within…