Topsis
Project description
Topsis Description
This python package can help you to calculate topsis score and corresponding rank in maximum 2-3 lines of code.
The package will create a csv file corresponding to the input details i.e. dataframe with additional parameters like weights and impacts of those columns present in dataframe.
Usage
Step 1: Install the topsis package using the following commmand. (pip install Topsis-Tanya-102016109==2.2)
Step 2: Import the package using the commmand. (tp=__import__("Topsis-Tanya-102016109"))
Step 3: Call the Topsis function to generate the csv file in which 1st parameter is your input dataframe, 2nd is weights, 3rd is impacts and last is the name of output csv file. For eg:
tp.topsis('102016109-data.csv',"1,1,1,1,1","+,+,+,+,+","result.csv")
This command will generate a csv file named result.csv.
Constraints
- Input dataframe with 1st column as model name and rest are it's features.
- Weights must be commas seperated and in the form of a string.
- Impacts must be commas seperated and in the form of a string having only positive and negative sign.
- Don't forget to put .csv extension otherwise it will throw an error
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-Tanya-102016109-0.1.tar.gz.
File metadata
- Download URL: Topsis-Tanya-102016109-0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc2d315ebb93981f307ffcbcd57427d202e43f01ee9e5f95eae6df2fb478682
|
|
| MD5 |
5b4ce6c6803f207dd8eaab43ce33716a
|
|
| BLAKE2b-256 |
11ce42737f91f05e2f7f5367415d529c287c3d639e317c35b1a98d11b3dcd150
|
File details
Details for the file Topsis_Tanya_102016109-0.1-py3-none-any.whl.
File metadata
- Download URL: Topsis_Tanya_102016109-0.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70298ddd31bc39435f1a82c7dad63ccb6cba7c966339b9cbd88d03a8bc16dba
|
|
| MD5 |
fa31e41fc337b75dc23660aad474bb2f
|
|
| BLAKE2b-256 |
1c681cff8c3e16ac869d3c0545ca124b4a1c895d8b3f7a14e2490d69ff744f35
|