This python code saves "ordered.csv" file containing a extra column of Rank in current working directory.
PyPI Project link here
Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the altenrative of shortest Euclidean distance from the idael solution, and fartherst distance from the negative-ideal solution.
Use below commands to install and use
- pip install topsis-csv-python3==1.0.1
- python3
>>>from topsis import topsis
>>>t = topsis.topsis([filename],[weights],[imapcts])
e.g. t = topsis.topsis("data.csv","1,2,1,1","-,+,+,+")