102203236_Topsis
Overview
TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method used for ranking and selecting alternatives based on multiple criteria. This Python package allows users to easily apply the TOPSIS method to their datasets.
Features
- Reads data from an Excel file.
- Automatically normalizes the data.
- Applies user-defined weights and impacts to criteria.
- Computes the TOPSIS score and ranks alternatives.
- Outputs the final decision-making table with rankings.
Installation
Install the package using pip:
pip install 102203236_Topsis
Usage
Import the package
from topsis import Topsis
Example
# Importing the package
from topsis import Topsis
# Define the input parameters
filename = "data.xlsx"
impacts = ['+','+','+','-','+']
weights = [0.25, 0.25, 0.25, 0.25, 0.25]
# Run TOPSIS
result = Topsis(filename, impacts, weights).get_result()
# Print the ranked result
print(result)
Expected Input Format
The input Excel file should contain numeric data for decision-making criteria. An example format:
| Fund Name | Criterion 1 | Criterion 2 | Criterion 3 | Criterion 4 | Criterion 5 |
|---|---|---|---|---|---|
| Fund A | 250 | 3.5 | 1200 | 8 | 85 |
| Fund B | 275 | 4.0 | 1150 | 7 | 90 |
| Fund C | 260 | 3.8 | 1250 | 6 | 88 |
Output Format
The output DataFrame includes the original data with additional columns:
- Score: Computed TOPSIS score.
- Rank: Final ranking based on the score.
Dependencies
This package requires:
pandasnumpy
These dependencies will be automatically installed when using pip install 102203236_Topsis.
License
This project is licensed under the MIT License.
Contributing
Pull requests are welcome! If you have suggestions or improvements, feel free to submit an issue or PR.
Author
- Name: Pranav Khurana
- GitHub: https://github.com/PranavKhurana117?tab=repositories
- Email: pranavkhurana117@gmail.com
Enjoy using the TOPSIS package! 🚀
Metadata
Release files for 102203236-Topsis 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| 102203236_topsis-0.0.1.tar.gz | 4.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 102203236_Topsis-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / 102203236_topsis-0.0.1.tar.gz
| Download URL | 102203236_topsis-0.0.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e35799cd08fa9dc362b693bdd8c02921765945b1cafb4376a8aa2c3e1af822a
|
|
BLAKE2b-256 checksum How to use checksums |
516e992040e14f47be1aaf4580ac6a7bf81a2eae6664b62ab28b45ecb9368183
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / 102203236_Topsis-0.0.1-py3-none-any.whl
| Download URL | 102203236_Topsis-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab3fcdc8661555f610ba111991028e8d3f883f3b211253d0153367cf7ca84137
|
|
BLAKE2b-256 checksum How to use checksums |
c0c5a972e7642d78c1b419a09b106906ccb48b5d818209e95916482f64c89df9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Security for 102203236-Topsis 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.