Skip to main content

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.

Metadata

Release files for Topsis-Devansh-102083052 2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for Topsis-Devansh-102083052 2.5
File Interpreter ABI Platform
Topsis_Devansh_102083052-2.5-py3-none-any.whl Python 3 none any Details

Release files / Topsis_Devansh_102083052-2.5-py3-none-any.whl

Download URL Topsis_Devansh_102083052-2.5-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aa3077dcc191d41a093b62af4c33b6dba1944d9f0e36d3faf7561d9fcc017d3
BLAKE2b-256 checksum
How to use checksums
04f2cd3c66733a90062b1bf42bafe3f73c7bc7e20c529b865ec6b12142ddfd71
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

2.5 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page