Skip to main content

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" "-,+,+,+"

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for topsis-pypck, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size topsis_pypck-0.2.2-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size topsis-pypck-0.2.2.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page