- I'm not good at English and development, so I apologize for my poor English and development.
- If you find or notice points to be improved, I would appreciate if you told me.
- This project hasn't uploaded to PyPI.
- This generator is imperfect.
This is a dummy data generator.
Unlike faker or mimesis, this generates dummy data with parameters defined by you.
Now, you can define parameters with a json file, and output data will create in csv folder.
- Make this generator available.(You need to run either
pattern1
orpattern2
)- pattern1
- Please clone this project.(
$ git clone ~
) - In the project directory, use
pip install .
command.
- Please clone this project.(
- pattern2
- use
pip install git+https://github.com/ktanonymous/dummy_creator
command.
- use
- pattern1
- You can use this generator with
from dummy_creator import create_dummy
script. - You will find dummy data in csv folder with this generator.
Show very simple input file example below.
input_file.json
{
"gender": {
"number": 800,
"label": {
"1": "male",
"2": "female"
},
"dist": "random",
"weights": {
"1": 6,
"2": 4
}
}
With this input file, you can create 800 dummy data of gender in the ratio of 6:4.
If you want to use this input file, for example, write script like below.
example.py
from dummy_creator import create_dummy
input_file = 'input_file.json'
create_dummy(input_file=input_file.json)
Dummy data will be created like below.
csv
┗ gender.csv
Now, you can use distribution showed below.
- Normal probability distribution (Gauss distribution)
- Logarithmic normal distribution
- Uniform distribution
- Random choices with user-defined-weights