Topsis-Vansh-102103072


NameTopsis-Vansh-102103072 JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/Vansh-Batra10/Topsis-Vansh-102103072
SummaryThis is a library for implementing Topsis in command line
upload_time2024-01-21 22:50:37
maintainer
docs_urlNone
authorVansh Batra
requires_python
licenseMIT
keywords topsis command line
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## Topsis-Vansh-102103072
Topsis-Vansh-102103072 is a library for Multiple Criteria Decision making using TOPSIS using command line
Assignment1
By: Vansh Batra 
Roll No: 102103072
Group: 3CO3

## Installation
Use pip to install it
```sh
pip install Topsis-Vansh-102103072
```
##General Instruction
For running it you would provide input csv file, weights ,impacts and output csv file in command line and the result would be stored in output csv file as well as displayed on command line.

## Steps to use it
In command line use the format :
topsis inputcsvfile weights impact output file
1) the first argument should be a csv file containing input data
2) The second argument should be weights 
3) The third should be impacts
4) The fourth should be the output csv file

```sh
 topsis input.csv "1,2,1,1" "+,-,+,-" output.csv
```
## Example
| Fund Name |   P1   |   P2   |  P3  |   P4   |   P5   |
|-----------|--------|--------|------|--------|--------|
|    M1     |  0.88  |  0.77  | 3.1  |  42.5  | 11.81  |
|    M2     |  0.74  |  0.55  | 3.6  |  67.6  | 18.12  |
|    M3     |  0.73  |  0.53  | 3.3  |  39.3  | 10.97  |
|    M4     |  0.75  |  0.56  |  5   |  30.8  |  9.28  |
|    M5     |   0.7  |  0.49  |  5   |  34.2  |  10.1  |
|    M6     |   0.6  |  0.36  | 6.4  |  49.1  | 14.12  |
|    M7     |  0.84  |  0.71  | 5.6  |  69.3  | 19.11  |
|    M8     |   0.9  |  0.81  | 6.4  |  61.6  | 17.43  |

Weights "1,1,1,2,2"
Impacts "+,-,+,+,+"
## OUTPUT
Output file: output.csv is written succesfully
 | Fund Name | P1   | P2   | P3   | P4   | P5   | Topsis Score | Rank |
|-----------|------|------|------|------|------|--------------|------|
| M1        | 0.88 | 0.77 | 3.1  | 42.5 | 11.81| 0.282550     | 5    |
| M2        | 0.74 | 0.55 | 3.6  | 67.6 | 18.12| 0.737680     | 2    |
| M3        | 0.73 | 0.53 | 3.3  | 39.3 | 10.97| 0.262740     | 7    |
| M4        | 0.75 | 0.56 | 5.0  | 30.8 | 9.28 | 0.220834     | 8    |
| M5        | 0.70 | 0.49 | 5.0  | 34.2 | 10.10| 0.263293     | 6    |
| M6        | 0.60 | 0.36 | 6.4  | 49.1 | 14.12| 0.554459     | 4    |
| M7        | 0.84 | 0.71 | 5.6  | 69.3 | 19.11| 0.780545     | 1    |
| M8        | 0.90 | 0.81 | 6.4  | 61.6 | 17.43| 0.688456     | 3    |
The result is also stored in output.csv file
## License

MIT


 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Vansh-Batra10/Topsis-Vansh-102103072",
    "name": "Topsis-Vansh-102103072",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "TOPSIS,Command Line",
    "author": "Vansh Batra",
    "author_email": "batravansh162@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/07/28/b88761ca2ae19ea60c6544c9c23feb5c13d147fed9d38afa096bdfb20c35/Topsis-Vansh-102103072-1.1.1.tar.gz",
    "platform": null,
    "description": "## Topsis-Vansh-102103072\r\nTopsis-Vansh-102103072 is a library for Multiple Criteria Decision making using TOPSIS using command line\r\nAssignment1\r\nBy: Vansh Batra \r\nRoll No: 102103072\r\nGroup: 3CO3\r\n\r\n## Installation\r\nUse pip to install it\r\n```sh\r\npip install Topsis-Vansh-102103072\r\n```\r\n##General Instruction\r\nFor running it you would provide input csv file, weights ,impacts and output csv file in command line and the result would be stored in output csv file as well as displayed on command line.\r\n\r\n## Steps to use it\r\nIn command line use the format :\r\ntopsis inputcsvfile weights impact output file\r\n1) the first argument should be a csv file containing input data\r\n2) The second argument should be weights \r\n3) The third should be impacts\r\n4) The fourth should be the output csv file\r\n\r\n```sh\r\n topsis input.csv \"1,2,1,1\" \"+,-,+,-\" output.csv\r\n```\r\n## Example\r\n| Fund Name |   P1   |   P2   |  P3  |   P4   |   P5   |\r\n|-----------|--------|--------|------|--------|--------|\r\n|    M1     |  0.88  |  0.77  | 3.1  |  42.5  | 11.81  |\r\n|    M2     |  0.74  |  0.55  | 3.6  |  67.6  | 18.12  |\r\n|    M3     |  0.73  |  0.53  | 3.3  |  39.3  | 10.97  |\r\n|    M4     |  0.75  |  0.56  |  5   |  30.8  |  9.28  |\r\n|    M5     |   0.7  |  0.49  |  5   |  34.2  |  10.1  |\r\n|    M6     |   0.6  |  0.36  | 6.4  |  49.1  | 14.12  |\r\n|    M7     |  0.84  |  0.71  | 5.6  |  69.3  | 19.11  |\r\n|    M8     |   0.9  |  0.81  | 6.4  |  61.6  | 17.43  |\r\n\r\nWeights \"1,1,1,2,2\"\r\nImpacts \"+,-,+,+,+\"\r\n## OUTPUT\r\nOutput file: output.csv is written succesfully\r\n | Fund Name | P1   | P2   | P3   | P4   | P5   | Topsis Score | Rank |\r\n|-----------|------|------|------|------|------|--------------|------|\r\n| M1        | 0.88 | 0.77 | 3.1  | 42.5 | 11.81| 0.282550     | 5    |\r\n| M2        | 0.74 | 0.55 | 3.6  | 67.6 | 18.12| 0.737680     | 2    |\r\n| M3        | 0.73 | 0.53 | 3.3  | 39.3 | 10.97| 0.262740     | 7    |\r\n| M4        | 0.75 | 0.56 | 5.0  | 30.8 | 9.28 | 0.220834     | 8    |\r\n| M5        | 0.70 | 0.49 | 5.0  | 34.2 | 10.10| 0.263293     | 6    |\r\n| M6        | 0.60 | 0.36 | 6.4  | 49.1 | 14.12| 0.554459     | 4    |\r\n| M7        | 0.84 | 0.71 | 5.6  | 69.3 | 19.11| 0.780545     | 1    |\r\n| M8        | 0.90 | 0.81 | 6.4  | 61.6 | 17.43| 0.688456     | 3    |\r\nThe result is also stored in output.csv file\r\n## License\r\n\r\nMIT\r\n\r\n\r\n \r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This is a library for implementing Topsis in command line",
    "version": "1.1.1",
    "project_urls": {
        "Download": "https://github.com/Vansh-Batra10/Topsis-Vansh-102103072/archive/refs/tags/v1.1.1.tar.gz",
        "Homepage": "https://github.com/Vansh-Batra10/Topsis-Vansh-102103072"
    },
    "split_keywords": [
        "topsis",
        "command line"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0728b88761ca2ae19ea60c6544c9c23feb5c13d147fed9d38afa096bdfb20c35",
                "md5": "b137394233a6c47844fbb57498a51719",
                "sha256": "72352bf5740b2b0495d28c1e33b41c4d56aa99d7a0b73a4397ed515f6ab14163"
            },
            "downloads": -1,
            "filename": "Topsis-Vansh-102103072-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b137394233a6c47844fbb57498a51719",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4752,
            "upload_time": "2024-01-21T22:50:37",
            "upload_time_iso_8601": "2024-01-21T22:50:37.632238Z",
            "url": "https://files.pythonhosted.org/packages/07/28/b88761ca2ae19ea60c6544c9c23feb5c13d147fed9d38afa096bdfb20c35/Topsis-Vansh-102103072-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-21 22:50:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Vansh-Batra10",
    "github_project": "Topsis-Vansh-102103072",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "topsis-vansh-102103072"
}
        
Elapsed time: 0.22336s