Skip to main content

Command line implementation of TOPSIS method

Project description

TOPSIS Python Package

This project implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method as a command line tool.

TOPSIS is a multi-criteria decision making technique used to rank alternatives based on their distance from an ideal best and ideal worst solution.


Installation

pip install Topsis-Prigya-102313061

Input File Format

The input must be a CSV file with:

  • First column: Names of alternatives
  • Remaining columns: Numeric criteria values

Example Input CSV

Fund Name,Return,Risk,Expense Ratio,Assets
Fund A,12.5,8.2,0.45,150
Fund B,10.2,6.5,0.30,200
Fund C,14.1,9.1,0.55,180
Fund D,9.8,5.9,0.25,220

Meaning of Criteria

  • Return → Higher is better (+)
  • Risk → Lower is better (-)
  • Expense Ratio → Lower is better (-)
  • Assets → Higher is better (+)

Command Line Usage

topsis data.csv "1,1,1,1" "+,-,-,+" output.csv

Output

The output CSV file will contain two additional columns:

  • Topsis Score
  • Rank

Requirements

  • Python 3.6+
  • pandas
  • numpy

Author

Prigya Goyal

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_prigya_102313061-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

topsis_prigya_102313061-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file topsis_prigya_102313061-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_prigya_102313061-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for topsis_prigya_102313061-1.0.0.tar.gz
Algorithm Hash digest
SHA256 02f0303607f8d7bcaf2a8eeef327c72be388fb33aea04a76d345a60fd7214981
MD5 bf72d5ad57a942d1771b0d8808fd178f
BLAKE2b-256 5a37219160071707d1953da4f1641a7e63001a565ebffb59c079161ff13f14f1

See more details on using hashes here.

File details

Details for the file topsis_prigya_102313061-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_prigya_102313061-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61e72a351541e6347bca9ebce9aa7c4af3e8247b1567ff310a2e0e213d5bbeb7
MD5 4ffb8cae0cd79b8f67fe76505e35d19c
BLAKE2b-256 c0f010dbbae1e968e095e35c56de66340510db25ecae7c255c668fa28eccbf03

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