API and CLI tool to calculate Topsis, CLI tool inputs CSV/Excel files
Project description
Topsis Package (API & CLI)
CLI scripts takes
csv/excelfiles as input!
Installation
pip install Topsis-Nandini-102067009
Command Line Usage
topsis input_file weights impacts output_file
Arguments
| Arguments | Description |
|---|---|
| input_file | "CSV/Excel" file path |
| weights | Comma separated numbers |
| impacts | Comma separated '+' or '-' |
| output_file | Output CSV file path |
Output
Creates a output_file, that contains the original data with performance score and rank.
Example:
topsis data.xlsx "1,1,1,1,1" "+,-,+,-,+" output.csv
API Usage
Steps
- Import topsis function from module topsis
- Invoke topsis function by passing in data, weights, impacts
Example:
from topsis import topsis
import pandas as pd
df = pd.read_csv('data.csv')
weights = [2,2,3,3,4]
impacts=[1,-1,1,-1,1]
print(topsis(df, weights, impacts))
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-Nandini-102067009-1.1.4.tar.gz.
File metadata
- Download URL: Topsis-Nandini-102067009-1.1.4.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d40a54ea919669d0ab1fcbcb3bb2b93be22df01530a4f4be19716047fd11cfc
|
|
| MD5 |
b6d0b3caace413571140b9c2afa9532b
|
|
| BLAKE2b-256 |
f65bcf32dfb4e4b1172a04525b27f61988f7d63acc7de91302b62d6ab07f9463
|
File details
Details for the file Topsis_Nandini_102067009-1.1.4-py3-none-any.whl.
File metadata
- Download URL: Topsis_Nandini_102067009-1.1.4-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bcf139c71c1c9c3551d85d2631d47819ce4a7c50719e02bbd95ea7b878b29c2
|
|
| MD5 |
3b962249840360fb8f3f32a26abc3fcb
|
|
| BLAKE2b-256 |
e30e69ece7503b0741c8d7c7b5c5f7de2c3a2de02bcfa6a42d2db476cd42263e
|