Python Package implementing TOPSIS method for multi-criteria decision making method
Project description
Topsis Python Package
This is a Python Package implementing Topsis Multi-Criteria Decison Making method.
It is a simple implementation using
- pandas
- numpy
It stores the output as a csv file with user-specified name.
Output contains the original data with two additional columns i.e. Topsis Score and Rank based on the score.
Installation
To install the package
pip install topsis-kanuj-102017188
Usage
To use the package from the command line (Data file and result file name should contain .csv extension)
topsis [data file name] [weights as string seperated by ','] [impacts as string seperated by ','] [result data file name]
For example
topsis data.csv "1,1,1,1,1" "+,+,+,-,+" result.csv
Sample
Data Sample
Model,StorageSpace,Camera,Price,Looks
M1,16,12,250,5
M2,16,8,200,3
M3,32,16,300,4
M4,32,8,275,4
M5,16,16,225,2
Sample topsis command
topsis data.csv "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv
Sample Output file
Model,StorageSpace,Camera,Price,Looks,TopsisScore,Rank
M1,16,12,250,5,0.534277,3.0
M2,16,8,200,3,0.308368,5.0
M3,32,16,300,4,0.691632,1.0
M4,32,8,275,4,0.534737,2.0
M5,16,16,225,2,0.401046,4.0
Notes
The data should only contain numerical data.
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
Hashes for topsis-kanuj-102017188-1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7436180d2cba3d97bbd4f27957653927343748f5063a3ff346252b63ce4636fd |
|
MD5 | 0382c7929bebac5edac12ae91d586cd9 |
|
BLAKE2b-256 | f3c6aaf06748fb6d80a712aae485e21f37302c76fcbb2ffc1b140a6bc3b6e89e |