Skip to main content

Topsis

Project description

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-Anirudh-101916111==2.2)

Step 2: Import the package using the commmand. (tp=__import__("Topsis-Anirudh-101916111"))

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('101916111-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

Project details


Release history Release notifications | RSS feed

This version

2.2

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_Anirudh_101916111-2.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Anirudh_101916111-2.2-py3-none-any.whl.

File metadata

  • Download URL: Topsis_Anirudh_101916111-2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for Topsis_Anirudh_101916111-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ab768cc98d091e913460b5ff6f541467c9c13e35e95af7555f138e3f38514ac
MD5 46412dfbdebc5e562891609e3a4602ee
BLAKE2b-256 c325f324f6df1a7011aa24bb7f87eb0bfc537114d737295c62ecdd5cd662056f

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