Metadata-Version: 2.1
Name: Topsis-Tanya-102016109
Version: 0.1
Summary: Topsis
Author: Tanya
Author-email: tgarg1_be20@thapar.edu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# Topsis Description

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

The package will create a csv file corresponding to the input details i.e. dataframe with additional parameters like weights and impacts of those columns present in dataframe.

# Usage

__Step 1:__ Install the topsis package using the following commmand. (pip install Topsis-Tanya-102016109==2.2)

__Step 2:__ Import the package using the commmand. (tp=\_\_import__("Topsis-Tanya-102016109"))

__Step 3:__ 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:

tp.topsis('102016109-data.csv',"1,1,1,1,1","+,+,+,+,+","result.csv")

This command will generate a csv file named 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) Don't forget to put .csv extension otherwise it will throw an error
