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
- Input dataframe with 1st column as model name and rest are it's features.
- Weights must be commas seperated and in the form of a string.
- Impacts must be commas seperated and in the form of a string having only positive and negative sign.
- Input file must contain 3 or more columns
- First column is the object or variable name
- From 2nd to last columns contain numeric values only
Output
- 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
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
File details
Details for the file TOPSIS_KHUSHI_102016099-1.2.2.tar.gz
.
File metadata
- Download URL: TOPSIS_KHUSHI_102016099-1.2.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad410119e8ac1f080ecfcc5a8bedba88d525bed3557aaac892ad301345abec07 |
|
MD5 | 61c68b9e286dd7ef72c636c73742a726 |
|
BLAKE2b-256 | f4311739ac8fc6267f4776e277f3ecffbb7240164ed669ef2acfb0466a7aa979 |
File details
Details for the file TOPSIS_KHUSHI_102016099-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: TOPSIS_KHUSHI_102016099-1.2.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c13d7ed3622b7a50f9c2c595bf3589fd473f18dfdcb549a1b0ec7acb3bab963a |
|
MD5 | be484184fd901f240e8d2b02d1bf5f55 |
|
BLAKE2b-256 | 5a8856dc7eb1ec9dbf8a02c1aba7cf141e74ae12ce6dd66a3d5289f61169ed2a |