Skip to main content

Topsis

Project description

Topsis Description

This Python module will assist you in calculating topsis score and accompanying rank in few lines of code.

The script will generate a csv file according to the input information, i.e. a dataframe, with extra parameters such as weights and impacts of the columns in the dataframe.

Usage

Step 1:Use the following command to install the topsis package. (!pip install Topsis-Devansh-10208352)

Step 2: Using the command, import the package. (tp=__import__("Topsis-Devansh-10208352"))

Step 3: Call the Topsis function to produce the csv file, with the first parameter being your input dataframe, the second being weights, the third being impacts, and the last being the name of the output csv file. As an example: tp.topsis('102083052-data.csv',"1,2,1,2,1","+,+,-,+,+","result.csv")

This command will create the csv file result.csv

Constraints

  1. Create a dataframe with the first column as the model name and the rest as its features.
  2. Weights must be separated by commas and in the form of a string.
  3. Impacts must be separated by commas and in the form of a string with only positive and negative signs.
  4. Don't forget to include the.csv extension.

Project details


Release history Release notifications | RSS feed

This version

2.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Topsis_Devansh_102083052-2.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Devansh_102083052-2.5-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Devansh_102083052-2.5-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for Topsis_Devansh_102083052-2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0aa3077dcc191d41a093b62af4c33b6dba1944d9f0e36d3faf7561d9fcc017d3
MD5 3184e00954986a67412979a461224dee
BLAKE2b-256 04f2cd3c66733a90062b1bf42bafe3f73c7bc7e20c529b865ec6b12142ddfd71

See more details on using hashes here.

Supported by

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