It returns the csv file with topsis score as well as the rank to the provided csv file.
Project description
topsis-Arryuann-102103062
for: Assignment01-Topsis (UCS633) submitted by: Arryuann Khanna Roll no: 102103062 Group: 3COE3 This Python library helps with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).
Installation
pip install topsis-Arryuann-102103062
How to use it?
Open terminal and enter a valid csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, then impacts vector with comma separated signs (+,-) and finally the output file name in csv format.
topsis 102103062-data.csv "1,1,1,1" "+,-,+,+" 102103062-result-1.csv
Example
If you have this content inside the 102103062-data.csv-
| Fund Name | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| M1 | 0.88 | 0.77 | 3.0 | 57.7 | 15.59 |
| M2 | 0.87 | 0.76 | 4.9 | 39.4 | 11.48 |
| M3 | 0.91 | 0.83 | 5.5 | 59.4 | 16.66 |
| M4 | 0.61 | 0.37 | 3.2 | 39.6 | 10.95 |
| M5 | 0.60 | 0.36 | 5.6 | 62.3 | 17.22 |
| M6 | 0.77 | 0.59 | 6.1 | 51.5 | 14.74 |
| M7 | 0.61 | 0.37 | 4.7 | 43.3 | 12.25 |
| M7 | 0.71 | 0.50 | 6.1 | 42.6 | 12.48 |
and you ran the command-
topsis 102103062-data.csv "1,1,1,1,1" "+,-,+,-,+" 102103062-result-1.csv
you get this as output-
Fund Name P1 P2 P3 P4 P5 Topsis Score Rank
0 M1 0.88 0.77 3.0 57.7 15.59 0.626255 1
1 M2 0.87 0.76 4.9 39.4 11.48 0.535066 3
2 M3 0.91 0.83 5.5 59.4 16.66 0.460473 4
3 M4 0.61 0.37 3.2 39.6 10.95 0.559417 2
4 M5 0.60 0.36 5.6 62.3 17.22 0.363836 7
5 M6 0.77 0.59 6.1 51.5 14.74 0.353200 8
6 M7 0.61 0.37 4.7 43.3 12.25 0.455437 5
7 M8 0.71 0.50 6.1 42.6 12.48 0.378622 6
and also saved in 102103062-result-1.csv in current working directory
License
© 2024 Arryuann Khanna
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topsis-arryuann-102103062-1.0.2.tar.gz.
File metadata
- Download URL: topsis-arryuann-102103062-1.0.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6345b0c3c42ddebd1b0dc4e7a5947961ba221d589347dc3c26e927e3c9199c10
|
|
| MD5 |
ae10f8b33b843280de4452ea9e4e37c7
|
|
| BLAKE2b-256 |
8e83f5684354bb392181c30c4d993247b624bbbbc950099e472e13527400e15d
|
File details
Details for the file topsis_arryuann_102103062-1.0.2-py3-none-any.whl.
File metadata
- Download URL: topsis_arryuann_102103062-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c5123a1175eb447da74cf3478faa3b7115066b826abe4935aa377a8af7e6416
|
|
| MD5 |
04d1adb3289f845483e8441dbea176a2
|
|
| BLAKE2b-256 |
80e83da142b4c3881a8ecef9b693ff9dd7ac9b41bc33479a3659d3a3b6ab015e
|