Metadata-Version: 2.1
Name: Topsis-Apoorv-102083051
Version: 0.2
Summary: Topsis
Home-page: UNKNOWN
Author: Apoorv
Author-email: amishra3_be19@thapar.edu
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# Topsis Result Calculator
It runs on terminal and takes a csv file , weights of column, impacts and name of the output file as input and gives an output csv file that contains topsis performance score and the rank of a particular entity.

## Installation
On your terminal run the command below:<br>
```pip install Topsis-Apoorv-102083051```

## Importing and using in source file
use the package in source file as follows:<br>

```
tbj=__import__("Topsis-Apoorv-102083051")
tbj.get_topsis_result("input.csv","1,1,1,1,1","+,-,-,-,+","output.csv")
```

## How to get output?
output is taken by running the command on terminal as : python "sourcefile.py" "input.csv" "weights(separateed by ',')" "impact(separated by ','))" 
use impact as '+' for maximizing the feature and '-' for minimizing.
On your terminal run the command:<br>
```python source_file_name.py input_file.csv "1,1,0,1" "+,-,+,+" output_file_name.csv```
Output will be stored in your present working directory as a csv file.

## Constraints
### Number of columns in input file(other than the name of the entity) should be equal to length of impacts and length of weights.
### Input file should not have blank values
### Number of Columns in Input files should not be less than 3
### There should not be any csv file with same name as your output file in present directory
### Number of Arguments should be equal to the number as specified above  



