ProdPack


NameProdPack JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryAn Efficiency and Productivity Analysis Package
upload_time2024-08-24 13:37:25
maintainerNone
docs_urlNone
authorNone
requires_python>=3.6
licenseMIT License Copyright (c) 2024 Dr Daoping Wang (daopingwang@outlook.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ProdPack: An Efficiency and Productivity Analysis Package

ProdPack is a Python package designed for Efficiency and Productivity Analysis. Its comprehensive toolset allows for efficient handling of various productivity index estimates, including those that account for undesirable outputs (e.g., total factor productivity, TFP).

## Installation

Install the package by `pip`,

```sh
pip install ProdPack
```
Or install the package by `conda`,
```sh
conda install ProdPack
```

## Usage

A brief example is provided below. For more information, please refer to the [documentation]() and [example notebooks]().

```python
# import the module
import pandas as pd
from ProdPack.model import ProdNP
from DEAPack.utilities import load_example_data

# load the example dataset
data = load_example_data()

# initilise a nonparametric model
model = ProdNP()

# specify the model
model.DMUs = data['region']
model.x_vars = data[['K', 'L']]
model.y_vars = data[['Y']]
model.b_vars = data[['CO2']]
model.time = data['year']
model.g_x = model.x_vars*0
model.ref_type = 'Sequential'

# solve the model
model.solve()

# check the results
data['prod_ch'] = model.prod_ch
data['eff_ch'] = model.eff_ch
data['te_ch'] = model.te_ch
print(data)
# the results are combind into the data set
```

## Communication

You're very welcome to contribute to this package. We appreciate any efforts to improve this package. You can help by adding new features, reporting bugs, or extending the documentation and usage examples. Please contact us if you have any ideas.

- [Pull requests](https://github.com/daopingw/ProdPack/pulls) for pull requests.
- [Issues](https://github.com/daopingw/ProdPack/issues) for bug reports.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ProdPack",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Dr Daoping Wang <daopingwang@outlook.com>",
    "download_url": "https://files.pythonhosted.org/packages/38/f9/575210e599a9fa6a068feb23be1c5dc6186099f474cdd5f07e60537ae1d7/prodpack-0.1.1.tar.gz",
    "platform": null,
    "description": "# ProdPack: An Efficiency and Productivity Analysis Package\n\nProdPack is a Python package designed for Efficiency and Productivity Analysis. Its comprehensive toolset allows for efficient handling of various productivity index estimates, including those that account for undesirable outputs (e.g., total factor productivity, TFP).\n\n## Installation\n\nInstall the package by `pip`,\n\n```sh\npip install ProdPack\n```\nOr install the package by `conda`,\n```sh\nconda install ProdPack\n```\n\n## Usage\n\nA brief example is provided below. For more information, please refer to the [documentation]() and [example notebooks]().\n\n```python\n# import the module\nimport pandas as pd\nfrom ProdPack.model import ProdNP\nfrom DEAPack.utilities import load_example_data\n\n# load the example dataset\ndata = load_example_data()\n\n# initilise a nonparametric model\nmodel = ProdNP()\n\n# specify the model\nmodel.DMUs = data['region']\nmodel.x_vars = data[['K', 'L']]\nmodel.y_vars = data[['Y']]\nmodel.b_vars = data[['CO2']]\nmodel.time = data['year']\nmodel.g_x = model.x_vars*0\nmodel.ref_type = 'Sequential'\n\n# solve the model\nmodel.solve()\n\n# check the results\ndata['prod_ch'] = model.prod_ch\ndata['eff_ch'] = model.eff_ch\ndata['te_ch'] = model.te_ch\nprint(data)\n# the results are combind into the data set\n```\n\n## Communication\n\nYou're very welcome to contribute to this package. We appreciate any efforts to improve this package. You can help by adding new features, reporting bugs, or extending the documentation and usage examples. Please contact us if you have any ideas.\n\n- [Pull requests](https://github.com/daopingw/ProdPack/pulls) for pull requests.\n- [Issues](https://github.com/daopingw/ProdPack/issues) for bug reports.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Dr Daoping Wang (daopingwang@outlook.com)  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "An Efficiency and Productivity Analysis Package",
    "version": "0.1.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/daopingw/ProdPack/issues",
        "Homepage": "https://github.com/daopingw/ProdPack"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "35ad805d13e87be15c715047ba4ded2a39031e92af33c361fc0cb16b9fdd2ea7",
                "md5": "b9e6bd698786811f1f81662e127a811e",
                "sha256": "a15147c7115af003b605789fec0194f6a85ae3b25a954baa3c52355cf65bf698"
            },
            "downloads": -1,
            "filename": "prodpack-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b9e6bd698786811f1f81662e127a811e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6293,
            "upload_time": "2024-08-24T13:37:23",
            "upload_time_iso_8601": "2024-08-24T13:37:23.758044Z",
            "url": "https://files.pythonhosted.org/packages/35/ad/805d13e87be15c715047ba4ded2a39031e92af33c361fc0cb16b9fdd2ea7/prodpack-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38f9575210e599a9fa6a068feb23be1c5dc6186099f474cdd5f07e60537ae1d7",
                "md5": "de5468f456be17deba9dc6e14f1cdc17",
                "sha256": "c5ecbcb4d80b2b5639b30ceb761abab1fb8f9d0b62e353b9d70ef11f4dab3784"
            },
            "downloads": -1,
            "filename": "prodpack-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "de5468f456be17deba9dc6e14f1cdc17",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5471,
            "upload_time": "2024-08-24T13:37:25",
            "upload_time_iso_8601": "2024-08-24T13:37:25.407941Z",
            "url": "https://files.pythonhosted.org/packages/38/f9/575210e599a9fa6a068feb23be1c5dc6186099f474cdd5f07e60537ae1d7/prodpack-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-24 13:37:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "daopingw",
    "github_project": "ProdPack",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "prodpack"
}
        
Elapsed time: 0.29505s