topsis-sidharth-102218069


Nametopsis-sidharth-102218069 JSON
Version 0.5 PyPI version JSON
download
home_pagehttps://github.com/sidharthd7/Topsis-Sidharth-102218069
SummaryA Python package to perform TOPSIS analysis.
upload_time2024-08-13 19:51:44
maintainerNone
docs_urlNone
authorSidharth Dhawan
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TOPSIS-Sidharth-102218069

## Overview

This package implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision-making. The method ranks alternatives based on their relative closeness to the ideal solution.

## Installation

You can install the package directly from PyPI using the following command:

```bash
pip install topsis-sidharth-102218069
```

## Usage

You can use this package from the command line to calculate TOPSIS scores and rankings for a given dataset.

### Command Line

```bash
topsis_69 <Weights> <Impacts> <InputDataFile> <ResultFileName>
```

### Example

```bash
topsis_69 "1,1,1,2" "+,+,-,+" 102218069-data.csv 102218069-result.csv
```

### Parameters

- `<Weights>`: Comma-separated weights for each criterion.
- `<Impacts>`: Comma-separated impacts for each criterion, where each impact is either `+` (beneficial) or `-` (non-beneficial).
- `<InputDataFile>`: Path to the input CSV file containing the data.
- `<ResultFileName>`: The name of the output CSV file where the results will be saved.

### Sample Input File Format

The input CSV file should have the following structure:

| Fund Name | P1  | P2  | P3  | P4  | P5  |
|-----------|-----|-----|-----|-----|-----|
| M1        | 0.84| 0.71| 6.7 | 42.1| 12.59|
| M2        | 0.91| 0.83| 7.0 | 31.7| 10.11|
| ...       | ... | ... | ... | ... | ... |

### Sample Output File Format

The output CSV file will have the following structure:

| Fund Name | P1  | P2  | P3  | P4  | P5  | Topsis Score | Rank |
|-----------|-----|-----|-----|-----|-----|--------------|------|
| M1        | 0.84| 0.71| 6.7 | 42.1| 12.59| 0.3653       | 6    |
| M2        | 0.91| 0.83| 7.0 | 31.7| 10.11| 0.2819       | 8    |
| ...       | ... | ... | ... | ... | ...  | ...          | ...  |

## Error Handling

The program will raise an error and terminate if:

- The input file is not found.
- The number of weights and impacts does not match the number of criteria.
- Impacts contain values other than `+` or `-`.
- Weights are not numeric.

## Dependencies

- `pandas`
- `numpy`

These dependencies are automatically installed when you install the package.

## Author

Sidharth Dhawan

## License

This project is licensed under the MIT License.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sidharthd7/Topsis-Sidharth-102218069",
    "name": "topsis-sidharth-102218069",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Sidharth Dhawan",
    "author_email": "sidharthdhawan17@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/40/24/6dcb259424db2def77e0e75aeb75497d69bd174764416068d9c5286d99e3/topsis-sidharth-102218069-0.5.tar.gz",
    "platform": null,
    "description": "# TOPSIS-Sidharth-102218069\r\n\r\n## Overview\r\n\r\nThis package implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision-making. The method ranks alternatives based on their relative closeness to the ideal solution.\r\n\r\n## Installation\r\n\r\nYou can install the package directly from PyPI using the following command:\r\n\r\n```bash\r\npip install topsis-sidharth-102218069\r\n```\r\n\r\n## Usage\r\n\r\nYou can use this package from the command line to calculate TOPSIS scores and rankings for a given dataset.\r\n\r\n### Command Line\r\n\r\n```bash\r\ntopsis_69 <Weights> <Impacts> <InputDataFile> <ResultFileName>\r\n```\r\n\r\n### Example\r\n\r\n```bash\r\ntopsis_69 \"1,1,1,2\" \"+,+,-,+\" 102218069-data.csv 102218069-result.csv\r\n```\r\n\r\n### Parameters\r\n\r\n- `<Weights>`: Comma-separated weights for each criterion.\r\n- `<Impacts>`: Comma-separated impacts for each criterion, where each impact is either `+` (beneficial) or `-` (non-beneficial).\r\n- `<InputDataFile>`: Path to the input CSV file containing the data.\r\n- `<ResultFileName>`: The name of the output CSV file where the results will be saved.\r\n\r\n### Sample Input File Format\r\n\r\nThe input CSV file should have the following structure:\r\n\r\n| Fund Name | P1  | P2  | P3  | P4  | P5  |\r\n|-----------|-----|-----|-----|-----|-----|\r\n| M1        | 0.84| 0.71| 6.7 | 42.1| 12.59|\r\n| M2        | 0.91| 0.83| 7.0 | 31.7| 10.11|\r\n| ...       | ... | ... | ... | ... | ... |\r\n\r\n### Sample Output File Format\r\n\r\nThe output CSV file will have the following structure:\r\n\r\n| Fund Name | P1  | P2  | P3  | P4  | P5  | Topsis Score | Rank |\r\n|-----------|-----|-----|-----|-----|-----|--------------|------|\r\n| M1        | 0.84| 0.71| 6.7 | 42.1| 12.59| 0.3653       | 6    |\r\n| M2        | 0.91| 0.83| 7.0 | 31.7| 10.11| 0.2819       | 8    |\r\n| ...       | ... | ... | ... | ... | ...  | ...          | ...  |\r\n\r\n## Error Handling\r\n\r\nThe program will raise an error and terminate if:\r\n\r\n- The input file is not found.\r\n- The number of weights and impacts does not match the number of criteria.\r\n- Impacts contain values other than `+` or `-`.\r\n- Weights are not numeric.\r\n\r\n## Dependencies\r\n\r\n- `pandas`\r\n- `numpy`\r\n\r\nThese dependencies are automatically installed when you install the package.\r\n\r\n## Author\r\n\r\nSidharth Dhawan\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License.\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package to perform TOPSIS analysis.",
    "version": "0.5",
    "project_urls": {
        "Homepage": "https://github.com/sidharthd7/Topsis-Sidharth-102218069"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72d7e87d19324cbca8938a8471b415b50acb3a052e3a2f7ea36f99711708b94a",
                "md5": "52454fe649f4cfb338bca4e2921ba1e1",
                "sha256": "5eca75e2557231329430f924beac2f630b53711865bd034676aee5fcbedfc127"
            },
            "downloads": -1,
            "filename": "topsis_sidharth_102218069-0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "52454fe649f4cfb338bca4e2921ba1e1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4914,
            "upload_time": "2024-08-13T19:51:43",
            "upload_time_iso_8601": "2024-08-13T19:51:43.003064Z",
            "url": "https://files.pythonhosted.org/packages/72/d7/e87d19324cbca8938a8471b415b50acb3a052e3a2f7ea36f99711708b94a/topsis_sidharth_102218069-0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "40246dcb259424db2def77e0e75aeb75497d69bd174764416068d9c5286d99e3",
                "md5": "a04eb3fba5a3309fdcff0058c8d5970d",
                "sha256": "d76c30e1febde9adfcc2e4593184395c7475335d4c946b313e335e2e5e11194a"
            },
            "downloads": -1,
            "filename": "topsis-sidharth-102218069-0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a04eb3fba5a3309fdcff0058c8d5970d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4113,
            "upload_time": "2024-08-13T19:51:44",
            "upload_time_iso_8601": "2024-08-13T19:51:44.904261Z",
            "url": "https://files.pythonhosted.org/packages/40/24/6dcb259424db2def77e0e75aeb75497d69bd174764416068d9c5286d99e3/topsis-sidharth-102218069-0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-13 19:51:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sidharthd7",
    "github_project": "Topsis-Sidharth-102218069",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "topsis-sidharth-102218069"
}
        
Elapsed time: 0.32761s