Skip to main content

A TOPSIS implemented function that returns rank of rows

Project description

topsis-sidaknoor-102203262

It is a command line package that gives rank and score to a row based on value , weights and impacts given. It uses the TOPSIS( The Technique for Order of Preference by Similarity to Ideal Solution ) under the hood to do these calculations.

Installation

pip install -i https://test.pypi.org/simple/ topsis-sidak-102203262

How to use it

Syntax :

   topsis -f=[filepath] -w=[weights] -i=[impacts] -o=[output]

Arguments

  1. filepath : str : a file containing data on which you want to perform topsis. This should include first column as a string column while others as numeric values only.

  2. weights : str : Importance you want to give to each feature. Note should be a numeric values seperated by a comma(","). By default , weights="1,1,1,...."

  3. impacts : str : Sign given regarding if you want more or less of feature. Should be '+' or '-' separated by a comma(","). By default , impacts="+,+,+,..."

  4. output : str : A filename in str if you want result to be saved in working directory. If not passed , by default None.

Returns: A pd.DataFrame with original values plus two columns of Topsis Score and Rank

LICENSE

This repository is licensed under MIT LICENSE. See LICENSE for more info.

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

Uploaded Source

Built Distribution

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

topsis_sidaknoor_102203262-1.0.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_sidaknoor_102203262-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5a8a71cfebf9652d5d39bfe5c84b8402e9613220ea689121fc7c3ecef31dd023
MD5 cf08974d986c0bfce640906b529657cf
BLAKE2b-256 9dab4f4df1c00e3e280d23300f31928deea0603f00ea639d24a6b0a3f586ad07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_sidaknoor_102203262-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76fbd2bfe459f0809249a452f387688a5f3d44765cec9e43698c4dafc2999c5b
MD5 af7feeb79ca14b4cc907ddf01f9f8f07
BLAKE2b-256 c5fa0285d141e46e3d6cc51df2cda1eff1629d1a6fe3ee2152e0b280cde843ac

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