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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02f0303607f8d7bcaf2a8eeef327c72be388fb33aea04a76d345a60fd7214981
|
|
| MD5 |
bf72d5ad57a942d1771b0d8808fd178f
|
|
| BLAKE2b-256 |
5a37219160071707d1953da4f1641a7e63001a565ebffb59c079161ff13f14f1
|
File details
Details for the file topsis_prigya_102313061-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_prigya_102313061-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61e72a351541e6347bca9ebce9aa7c4af3e8247b1567ff310a2e0e213d5bbeb7
|
|
| MD5 |
4ffb8cae0cd79b8f67fe76505e35d19c
|
|
| BLAKE2b-256 |
c0f010dbbae1e968e095e35c56de66340510db25ecae7c255c668fa28eccbf03
|