Skip to main content

Topsis package

Project description

Topsis Description

This python package can help you to calculate topsis score and corresponding rank in maximum 2-3 lines of code.

SUBMITTED BY:

KHUSHI SRIVASTAVA

102016099

3CS12

INSTALLATION

pip install TOPSIS-KHUSHI-102016099

import

from TOPSIS_KHUSHI_102016099 import topsis

Usage

Call the Topsis function to generate the csv file in which 1st parameter is your input dataframe, 2nd is weights, 3rd is impacts and last is the name of output csv file. For eg: topsis("102016099-data.csv","1,2,1,2,1","+,-,+,+,-","102016099-result.csv")

Constraints

  1. Input dataframe with 1st column as model name and rest are it's features.
  2. Weights must be commas seperated and in the form of a string.
  3. Impacts must be commas seperated and in the form of a string having only positive and negative sign.
  4. Input file must contain 3 or more columns
  5. First column is the object or variable name
  6. From 2nd to last columns contain numeric values only

Output

  1. Result file contains all the columns of input file and two additional columns having the topsis score and the rank

License

Copyright 2023

Khushi Srivastava

This repository is licensed under the MIT License

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_KHUSHI_102016099-1.2.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

TOPSIS_KHUSHI_102016099-1.2.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file TOPSIS_KHUSHI_102016099-1.2.2.tar.gz.

File metadata

File hashes

Hashes for TOPSIS_KHUSHI_102016099-1.2.2.tar.gz
Algorithm Hash digest
SHA256 ad410119e8ac1f080ecfcc5a8bedba88d525bed3557aaac892ad301345abec07
MD5 61c68b9e286dd7ef72c636c73742a726
BLAKE2b-256 f4311739ac8fc6267f4776e277f3ecffbb7240164ed669ef2acfb0466a7aa979

See more details on using hashes here.

File details

Details for the file TOPSIS_KHUSHI_102016099-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for TOPSIS_KHUSHI_102016099-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c13d7ed3622b7a50f9c2c595bf3589fd473f18dfdcb549a1b0ec7acb3bab963a
MD5 be484184fd901f240e8d2b02d1bf5f55
BLAKE2b-256 5a8856dc7eb1ec9dbf8a02c1aba7cf141e74ae12ce6dd66a3d5289f61169ed2a

See more details on using hashes here.

Supported by

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