Skip to main content

TOPSIS implementation in python for multi-criteria decision making

This package has been created based on Project 1 of course UCS633(DATA ANALYSIS AND VISUALISATION ) Thapar University, Patiala
Nishant Goel  
COE17
Roll number: 101703376

Output is a list with rankings of different objects.

  • also includes Best_performance_object

Installation

pip install topsis_nishant_76

Recommended - test it out in a virtual environment.

Upgrade

pip install topsis_nishant_76 --upgrade

To use via command line

topsis_cli mydata.csv '1,2,1,1' '-,+,+,+'

First argument is filename with .csv extension. The .csv file is assumed to have a structure similar to one provided in topsis_nishant_76/mydata.csv

That is, the .csv file should have a header with column names and first column should only list alternatives and not attribute values.

To use in .py script

from topsis_nishant_76 import topsis_nish
"""
decision_matrix is 2D numpy array, weights is a string seperated with ',' and impacts is a string of the form '+,-,+,-' 
where + indicates benefit and - indicates cost
"""
topsis_nish('mydata.csv','1,2,1,1','+,-,+,+')

Metadata

Release files for topsis-nishant-76 12.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for topsis-nishant-76 12.1.6
File Size Uploaded Provenance Actions
topsis_nishant_76-12.1.6.tar.gz 2.7 kB Without provenance Details for topsis_nishant_76-12.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for topsis-nishant-76 12.1.6
File Interpreter ABI Platform Actions
topsis_nishant_76-12.1.6-py3-none-any.whl Python 3 none any Details for topsis_nishant_76-12.1.6-py3-none-any.whl

Total release size: 6.8 kB

Release files / topsis_nishant_76-12.1.6.tar.gz

Download URL topsis_nishant_76-12.1.6.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
eca7a466924de31963d5271e5ace8b8847b689e8e3a41e0aef72e5e8af04b6aa
BLAKE2b-256 checksum
How to use checksums
1894df4657c7e2fad26606976405061a8ad8339c6e851a746ae8c67b0adbf95c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

Release files / topsis_nishant_76-12.1.6-py3-none-any.whl

Download URL topsis_nishant_76-12.1.6-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19bc22d52a013ebbc35fc4689ab74cbce546900ec4645e9de246a0c96873c993
BLAKE2b-256 checksum
How to use checksums
846555b657d908c6290c6fe6f1e7082e917fe6e1d13c9a46526056ddc3a7f801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.3

Security for topsis-nishant-76 12.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page