Topsis implementation package
Project description
TOPSIS implementation in python
Project1 for DATA ANALYSIS AND VISUALISATION(UCS633) Nishchay Mahajan COE18 Roll number: 101703377
Output is a dataframe with 3 columns
- Alternatives serial number
- Corresponding performance Score or closeness to ideal solution
- Rank
Installation
pip install topsis-pypck
Upgrade
pip install topsis-pypck --upgrade
To use via command line
python3 topsis.py file.csv "0.25,0.25,0.25,0.25" "-,+,+,+"
First argument after File.py is filename with .csv extension.
To use in python IDLE
>>>from topsis_pypck.topsis import topsis
>>> f= "file.csv"
>>> w = [1,1,1,1]
>>> im = ["+" , "+" , "-" , "+" ]
>>>topsis(f,w,im)
Output
Model Score Rank
------- -------- ------
1 0.534277 3
2 0.308368 5
3 0.691632 1
4 0.534737 2
5 0.401046 4
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
topsis-pypck-0.2.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for topsis_pypck-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a111660b560dce3b38cd9ecb2531224dd487930d87044368b2954f8a6581107d |
|
MD5 | 316c807b10bc8cb65ab5903c9065ed51 |
|
BLAKE2b-256 | f222a267093001346b9e8e30fc2b63195b3da0426147550153bb69f4008c5de9 |