Skip to main content

It gives a csv file that includes the topsis result

Project description

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:
pip install Topsis-JiteshSilhi-101903797

Importing and using in source file

use the package in source file as follows:

tbj=__import__("topsis)
tbj.get_topsis_result()

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:
python source_file_name.py input_file.csv "1,1,0,1" "+,-,+,+" output_file_name.csv
It will display the input arguments and the input data on terminal screen and 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

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-JiteshSilhi-101903797-5.0.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

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