A package to find the topsis score
Project description
##Package for calculating TOPSIS score and ranking of a given dataframe
Description The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multiple-criteria decision making (MCDM) method.
-
Usage a. topsis.norm_dataframe(data) normalize all the columns except 1st(treated as index); distributive normalization b. topsis.topsis_calc(data,weights,impacts) calculates and returns the topsis score and rank for the given arguments
-
Arguments
-
topsis.norm_dataframe(data)
- data A dataframe with m rows and n columns; 1st column is treated as index; All the calculations are done from 2nd column onwards
-
topsis.topsis_calc(data,weights,impacts)
- data A dataframe with m rows for m alternatives and n columns for n-1 criterions. 1st column is treated as index
- weights A numeric list with length equal to number of columns (from 2nd to last columns) in dataframe for weights of criterions.
- impacts A character list of "+" and "-" signs for the way that each criterion influences on the alternatives.
- Value (return)
- topsis.norm_dataframe(data) A normalized dataframe (distributive normalization)
- topsis.topsis_calc(data,weights,impacts)
Input dataframe with 2 additional columns
- TOPSIS Score TOPSIS score of alternatives.
- Rank Rank of alternatives based on TOPSIS scores.
- Example raw=pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv') w=[0.25,0.25,0.25,0.25] i=['-','+','+','+'] topsis_calc(raw,w,i)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Topsis-Prabhnoor-102083037-0.0.1.tar.gz.
File metadata
- Download URL: Topsis-Prabhnoor-102083037-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2179b5091ebce2117992d48e6b4bb4c831e77a0f111c6d76489aaa76a48532a6
|
|
| MD5 |
e9e0235e2dff1ba4d920aafa044504f6
|
|
| BLAKE2b-256 |
cead5836c24ce3802c0f4874d4ab869142ef58615e30617580dde52786ce061e
|
File details
Details for the file Topsis_Prabhnoor_102083037-0.0.1-py3-none-any.whl.
File metadata
- Download URL: Topsis_Prabhnoor_102083037-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a02832b7748585b31e030e85f630c9e78503d81e40fec49734f5e375dbab543
|
|
| MD5 |
e55c1be146cde506c64861a1645eacb6
|
|
| BLAKE2b-256 |
bab7ae0863df545f26d708f5da78b012c04ec3040dc461d079f746717abcfafb
|