Skip to main content

Get topsis score

Project description

Topsis_Disha

Topsis_Disha 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-Disha-101903291

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

Project details


Download files

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

Source Distribution

Topsis-Disha-101903291-0.0.6.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Disha_101903291-0.0.6-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Disha-101903291-0.0.6.tar.gz.

File metadata

  • Download URL: Topsis-Disha-101903291-0.0.6.tar.gz
  • Upload date:
  • Size: 1.8 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.10.2

File hashes

Hashes for Topsis-Disha-101903291-0.0.6.tar.gz
Algorithm Hash digest
SHA256 eaad06ec2a62dedbcd9200fae57906eab2b99844cfedc1a5715e86b5e731b9e6
MD5 c6f255994490f97b62f3c0cb4741f199
BLAKE2b-256 ac531ab5615173d52aa6114215aa12dbacd88de4056dfca6b7fc1b127a7067c6

See more details on using hashes here.

File details

Details for the file Topsis_Disha_101903291-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Disha_101903291-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 1.9 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.10.2

File hashes

Hashes for Topsis_Disha_101903291-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9a41b98251f654305e0a60b74b2fa88be195c5b7d8d44bfb3a8539a94343c5b0
MD5 7dc4b82b39cd5b407c5f1ee92f5ec54d
BLAKE2b-256 49a8d5a89d74f5146af229908e87ca85000bc58f94436b24a30b53943461890b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page