Implements topsis on the given input data file and generates topsis score and ranks accordingly.
Project description
Topsis-Ikshit-102003403
Used as a command line tool to generate topsis score and ranks of the given input data file along with weights and impacts.
Installation
pip install Topsis-Ikshit-102003403
How to use it?
1.Open the terminal / cmd 2.Type topsis <input_filename.csv> <"Weights"> <"Impacts"> <output_filename.csv>
For eg python 102003403.py 102003403-data.csv "2,2,3,3,4" "-,+,-,+,-" 102003403-result2.csv
Fund Name | P1 | P2 | P3 | P4 | P5 |
---|---|---|---|---|---|
M1 | 0.78 | 0.61 | 6.6 | 59.7 | 16.92 |
M2 | 0.76 | 0.58 | 3.2 | 53.5 | 14.51 |
M3 | 0.92 | 0.85 | 6.2 | 30.9 | 9.72 |
M4 | 0.84 | 0.71 | 4.4 | 66.6 | 18.14 |
M5 | 0.62 | 0.38 | 6.8 | 66.6 | 18.6 |
M6 | 0.63 | 0.4 | 5.3 | 40.6 | 11.73 |
M7 | 0.91 | 0.83 | 5 | 68.4 | 18.79 |
M8 | 0.84 | 0.71 | 6 | 62 | 17.39 |
gives output as
|Fund Name | P1 | P2 | P3 | P4 | P5 | Topsis Score | Rank |
| -------= | :-------: | :---------: | :---------: | :---------: | :---------: | :---------: | :------: |
| M1 | 0.693984785 | 0.658498148 | 1.260022389 | 1.101800492 | 1.49138809 | 0.391600818 | 7 |
| M2 | 0.676190304 | 0.626112993 | 0.610919946 | 0.98737565 | 1.278962245 | 0.608431381 | 1 |
| M3 | 0.818546157 | 0.917579386 | 1.183657396 | 0.570278647 | 0.85675486 | 0.504394509 | 3 |
| M4 | 0.74736823 | 0.766448664 | 0.840014926 | 1.229144268 | 1.598923165 | 0.51971065 | 2 |
| M5 | 0.551628932 | 0.410211961 | 1.298204886 | 1.229144268 | 1.639469177 | 0.38021749 | 8 |
| M6 | 0.560526173 | 0.431802064 | 1.011836161 | 0.749298157 | 1.033923304 | 0.475517399 | 5 |
| M7 | 0.809648916 | 0.895989283 | 0.954562416 | 1.262364383 | 1.656216443 | 0.501336766 | 4 |
| M8 | 0.74736823 | 0.766448664 | 1.145474899 | 1.144248417 | 1.532815537 | 0.438781833 | 6 |
License
© 2023 Ikshit
This repository is licensed under the MIT license. See LICENSE for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Topsis-Ikshit-102003403-1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4af27ce920e8f5c6c35973b465ac407837c1b7dd7a6ab12b799d33be7e7a0bd |
|
MD5 | 3e407c0dc4943fa4c516e53b62fa8906 |
|
BLAKE2b-256 | 5e77d39a2a02d0cc8d9a8f9361a7028fbe452c76d158c9234af1435ea8489b0b |
Hashes for Topsis_Ikshit_102003403-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 163e3304824a05b096c507fbdf03a14d0c70384f87b39ca52d97d93b742ac514 |
|
MD5 | e6d3594b4ee8a687c4a609dcbda9e6e9 |
|
BLAKE2b-256 | 8e77a795a871bac4421c81b835b5833eb7a646b12609382ce4b72549eb1d7543 |