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
-
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.
-
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,...."
-
impacts : str : Sign given regarding if you want more or less of feature. Should be '+' or '-' separated by a comma(","). By default , impacts="+,+,+,..."
-
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
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_sidaknoor_102203262-1.0.0.tar.gz.
File metadata
- Download URL: topsis_sidaknoor_102203262-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a8a71cfebf9652d5d39bfe5c84b8402e9613220ea689121fc7c3ecef31dd023
|
|
| MD5 |
cf08974d986c0bfce640906b529657cf
|
|
| BLAKE2b-256 |
9dab4f4df1c00e3e280d23300f31928deea0603f00ea639d24a6b0a3f586ad07
|
File details
Details for the file topsis_sidaknoor_102203262-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_sidaknoor_102203262-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76fbd2bfe459f0809249a452f387688a5f3d44765cec9e43698c4dafc2999c5b
|
|
| MD5 |
af7feeb79ca14b4cc907ddf01f9f8f07
|
|
| BLAKE2b-256 |
c5fa0285d141e46e3d6cc51df2cda1eff1629d1a6fe3ee2152e0b280cde843ac
|