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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f866855a15bdc6183b8caa24cf8fdd4badea5cff77da8d1cfc8157d60ed0676 |
|
MD5 | 129bb552b136ef29248315c928128c8a |
|
BLAKE2b-256 | 44017198289976701e23a6b705108895fc191b5ad835e222441b98d78ab676a0 |