CreateData


NameCreateData JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/dwenlvov/
SummaryEasy data generation
upload_time2024-02-27 12:54:31
maintainer
docs_urlNone
authordenis_lvov
requires_python>=3.11
license
keywords pandas
VCS
bugtrack_url
requirements numpy pandas
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# CreateData
[![PyPI - Version](https://img.shields.io/pypi/v/CreateData?style=flat-square&logo=PyPI&logoColor=white)](https://pypi.org/project/CreateData/)

When you need to come up with a test dataset quickly.
## Python
```python
pip install CreateData
```
and you need to install:
```python
pip install pandas numpy python-dateutil
```
## Fast and easy data generation N-row
```python
import CreateData.create_data as cd

cd.EasyData().gnrt({'size':1000}, easy=True)
```  
  
**Output example:**
| id|    date    |  bool |int|   float  |   str    |
| - |:----------:|:-----:| -:| --------:| -------- |
| 0 | 2023-07-17 | False | 6 | 5.776716 | ITYELsf  |
| 1 | 2024-01-01 | True  | 8 | 6.385161 | kvGhRr   |
| 2 | 2023-04-01 | False | 3 | 3.418855 | Ur       |
| 3 | 2023-11-06 | True  | 8 | 5.984482 | PZqwSJaO |
| 4 | 2023-07-16 | False | 1 | 4.696562 | yvye     |


## Need more columns and their customizations?
```python
params = cd.EasyData().get_params()
```
Output:  

*{'size': 100,
 'date': {'col': 1, 'min_date': '2023-02-27', 'max_date': '2024-02-27'},
 'bool': {'col': 1},
 'int': {'col': 1, 'min_int': 1, 'max_int': 10},
 'float': {'col': 1, 'min_float': 1, 'max_float': 10},
 'str': {'col': 1, 'min_str': 1, 'max_str': 10, 'dgts': False, 'pctn': False}}*

small clarification:  
max_date <- now()  
min_date <- max_date - 1 year  

## Edit the dictionary and pass it to the function
```python
cd.EasyData().gnrt(params)
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dwenlvov/",
    "name": "CreateData",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "pandas",
    "author": "denis_lvov",
    "author_email": "dwenlvov@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a6/12/bde7fbc970fa8262b707322fc9ccf9ab414360bec7b4f46602d74182ed66/CreateData-1.0.1.tar.gz",
    "platform": null,
    "description": "\n# CreateData\n[![PyPI - Version](https://img.shields.io/pypi/v/CreateData?style=flat-square&logo=PyPI&logoColor=white)](https://pypi.org/project/CreateData/)\n\nWhen you need to come up with a test dataset quickly.\n## Python\n```python\npip install CreateData\n```\nand you need to install:\n```python\npip install pandas numpy python-dateutil\n```\n## Fast and easy data generation N-row\n```python\nimport CreateData.create_data as cd\n\ncd.EasyData().gnrt({'size':1000}, easy=True)\n```  \n  \n**Output example:**\n| id|    date    |  bool |int|   float  |   str    |\n| - |:----------:|:-----:| -:| --------:| -------- |\n| 0 | 2023-07-17 | False | 6 | 5.776716 | ITYELsf  |\n| 1 | 2024-01-01 | True  | 8 | 6.385161 | kvGhRr   |\n| 2 | 2023-04-01 | False | 3 | 3.418855 | Ur       |\n| 3 | 2023-11-06 | True  | 8 | 5.984482 | PZqwSJaO |\n| 4 | 2023-07-16 | False | 1 | 4.696562 | yvye     |\n\n\n## Need more columns and their customizations?\n```python\nparams = cd.EasyData().get_params()\n```\nOutput:  \n\n*{'size': 100,\n 'date': {'col': 1, 'min_date': '2023-02-27', 'max_date': '2024-02-27'},\n 'bool': {'col': 1},\n 'int': {'col': 1, 'min_int': 1, 'max_int': 10},\n 'float': {'col': 1, 'min_float': 1, 'max_float': 10},\n 'str': {'col': 1, 'min_str': 1, 'max_str': 10, 'dgts': False, 'pctn': False}}*\n\nsmall clarification:  \nmax_date <- now()  \nmin_date <- max_date - 1 year  \n\n## Edit the dictionary and pass it to the function\n```python\ncd.EasyData().gnrt(params)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Easy data generation",
    "version": "1.0.1",
    "project_urls": {
        "Documentation": "https://github.com/dwenlvov/CreateData/",
        "Homepage": "https://github.com/dwenlvov/"
    },
    "split_keywords": [
        "pandas"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8007d1c56eb35bd02bc577eeda56b5871a560b0c09f9f1de82c724ae2a95bd1c",
                "md5": "397aec38f7c3d0a131e59e4f4232c5b7",
                "sha256": "e2dd201d0b1430bc6bf4fe8accf18ede48ea3c38e4672d523403b5acff3c31f2"
            },
            "downloads": -1,
            "filename": "CreateData-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "397aec38f7c3d0a131e59e4f4232c5b7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 4289,
            "upload_time": "2024-02-27T12:54:29",
            "upload_time_iso_8601": "2024-02-27T12:54:29.883878Z",
            "url": "https://files.pythonhosted.org/packages/80/07/d1c56eb35bd02bc577eeda56b5871a560b0c09f9f1de82c724ae2a95bd1c/CreateData-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a612bde7fbc970fa8262b707322fc9ccf9ab414360bec7b4f46602d74182ed66",
                "md5": "34271dba78412e6b13cdf5b6848006d8",
                "sha256": "cabfe520573b78705d6949ee58317691e8fea52a930a32a2a41e4341b9c47a20"
            },
            "downloads": -1,
            "filename": "CreateData-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "34271dba78412e6b13cdf5b6848006d8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 3944,
            "upload_time": "2024-02-27T12:54:31",
            "upload_time_iso_8601": "2024-02-27T12:54:31.638074Z",
            "url": "https://files.pythonhosted.org/packages/a6/12/bde7fbc970fa8262b707322fc9ccf9ab414360bec7b4f46602d74182ed66/CreateData-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-27 12:54:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dwenlvov",
    "github_project": "CreateData",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.26.4"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "2.2.1"
                ]
            ]
        }
    ],
    "lcname": "createdata"
}
        
Elapsed time: 0.20209s