Topsis_Laksh
Topsis_Laksh is a library for calculating topsis score and ranking them according to the score.
Installation
Use the package manager pip to install this package.
pip install Topsis-Laksh-101916002
Code Snippet
from topsis import main
main()
Usage in terminal
python <filename.py> <data.csv> '1,1,1,1,1' '+,+,-,+,+' <result.csv>
Input file (data.csv)
In this script, the first column should be named 'Fund Name' for the script to work correctly
| Fund Name | P1 | P2 | P3 | P4 |
|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 |
Output file (result.csv)
| Fund Name | P1 | P2 | P3 | P4 | Topsis Score | Rank |
|---|---|---|---|---|---|---|
| M1 | 0.79 | 0.62 | 1.25 | 60.89 | 0.7722 | 2 |
| M2 | 0.66 | 0.44 | 2.89 | 63.07 | 0.2255 | 5 |
| M3 | 0.56 | 0.31 | 1.57 | 62.87 | 0.4388 | 4 |
| M4 | 0.82 | 0.67 | 2.68 | 70.19 | 0.5238 | 3 |
| M5 | 0.75 | 0.56 | 1.3 | 80.39 | 0.8113 | 1 |
The output file contains columns of input file along with two additional columns having Topsis Score and Rank
Release files for Topsis-Laksh-101916002 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Topsis-Laksh-101916002-0.0.6.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Topsis_Laksh_101916002-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / Topsis-Laksh-101916002-0.0.6.tar.gz
| Download URL | Topsis-Laksh-101916002-0.0.6.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
431f2c2d662f5a010e335e88a3d62a338d347e883be33db1d402b536821e067d
|
|
BLAKE2b-256 checksum How to use checksums |
c6e1c4bd8acfa1a69d39423b26a5484a45854351ea70529b92b7355a9f303ae1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.10
|
Release files / Topsis_Laksh_101916002-0.0.6-py3-none-any.whl
| Download URL | Topsis_Laksh_101916002-0.0.6-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef7b00aed0716d119d4bd021e4cbdc12424753ab459e27a0a5c19d9fe871e7a6
|
|
BLAKE2b-256 checksum How to use checksums |
f6fbe026d12ad46a5a08ea4572bec880bd3a35fe039e6e4081372f76e55518d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.10
|