Skip to main content

API and CLI tool to calculate Topsis, CLI tool inputs CSV/Excel files

Project description

Topsis Package (API & CLI)

CLI scripts takes csv/excel files 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

  1. Import topsis function from module topsis
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Topsis-Nandini-102067009-1.1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Nandini_102067009-1.1.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Nandini-102067009-1.1.4.tar.gz.

File metadata

File hashes

Hashes for Topsis-Nandini-102067009-1.1.4.tar.gz
Algorithm Hash digest
SHA256 0d40a54ea919669d0ab1fcbcb3bb2b93be22df01530a4f4be19716047fd11cfc
MD5 b6d0b3caace413571140b9c2afa9532b
BLAKE2b-256 f65bcf32dfb4e4b1172a04525b27f61988f7d63acc7de91302b62d6ab07f9463

See more details on using hashes here.

File details

Details for the file Topsis_Nandini_102067009-1.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Nandini_102067009-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3bcf139c71c1c9c3551d85d2631d47819ce4a7c50719e02bbd95ea7b878b29c2
MD5 3b962249840360fb8f3f32a26abc3fcb
BLAKE2b-256 e30e69ece7503b0741c8d7c7b5c5f7de2c3a2de02bcfa6a42d2db476cd42263e

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