-
Notifications
You must be signed in to change notification settings - Fork 50
Generate value for a nullable column with a percentage #1704
Comments
I've tried this issue with the above profile given the latest edition of the code (to verify if the issue still exists). An example of the output (30 rows) is below:
This shows a 50% spread of each of the values for percent10, where there should be 10% (3 rows) with 0 and 90% (27 rows) with 1. The issue is still confirmed to be valid - will investigate further. |
Investigation:
The generator will then randomly select between the two items above to generate rows. The items above do not have any weighting however (which could have been inherited from the value for percent10) so the generator generates (randomly) an even spread of rows from the two specs above. Either of the below (or something more elegant) would be required:
|
Some column values must be filled by a percentage, for example one field must be 10% filled, another 30% in the same profile.
For %10 I tried a field from weighted inSet file and used in an if statement. but results seem to give %50.
How can I configure this?
percent10.csv
1,10
0,90
profile.json
The text was updated successfully, but these errors were encountered: