semvec/pypi-packages huggingface dataset:
psusannx-pipeline 0.1.14
A package containing classes to be used in the preprocessing data pipeline for the PSUSANNX project.
Requires Python: ==3.*

# psusannx_pipeline

A package that contains the custom classes & sklearn preprocessing pipeline object to be used in the PSUSANNX project. Creating the package will allow the custom classes to be imported into any script (like standard sklearn preprocessors) and used. In particular once the pipeline has been fit to data, this package will allow the fitted transformer to be pickled out as a file and read into another script that has this package imported too.

This package was created to be used as a subpackage in a wider project - PSUSANNX.

## Custom Transformers

- CorrectNegPoints
- BucketFormations
- GetLogRatios
- GetPercentagesAndPerGame
- GetDifferences
- CatboostEncodeFormations
- DropFeatures
- CustomScaler

## Installation

``` python
pip install psusannx_pipeline
```

## Usage

This pipeline is to be used on a specific dataframe.

```python
# Import all the custom classes & pipeline object
from psusannx_pipeline.pipeline import *

# Fit the processing pipeline to the data
data_preprocessed = preprocessing_pipeline.fit_transform(data).dropna()
```

Now save the fitted preprocessing pipeline out to a pkl file so it can be used in other scripts.

```python
# Import pickle for serialization
import pickle

# Save out the preprocessing pipeline to be used in processing the new predictions
pickle.dump(preprocessing_pipeline, open("preprocessing_pipeline.pkl", "wb"))
```

## Notes

- The package is quite restricted in what it can do, but it only needs to do things that are required by the parent project so there won't be much development.
usatt 0.0.3
Python tools for working with the USATT website.
Requires Python: >=3.10
Keywords: usatt,table tennis

# USATT

Python tools for working with the USA Table Tennis (USATT) website. As far as I am aware, there is no official API
for the USATT site. So this works purely via grabbing the HTML pages from the site and parsing

# Simple CLI examples

To get the USATT ratings for a few USATT ids, using a few of the top ranked USATT ids as an example:

```shell
usatt ratings -i 1165420 220283 31126
```

gives

|   USATT# | Name       |   Tournament Rating |   Highest Tournament Rating |   Tournaments Played |   League Rating |   Highest League Rating |   Leagues Played |
|---------:|:-----------|--------------------:|----------------------------:|---------------------:|----------------:|------------------------:|-----------------:|
|  1165420 | Lei Kou    |                2790 |                        2864 |                   33 |            2816 |                    2843 |                3 |
|   220283 | Jinbao Ma  |                2760 |                        2809 |                   32 |            2723 |                    2723 |                5 |
|    31126 | Lily Zhang |                2600 |                        2641 |                   95 |            2446 |                    2483 |               41 |

To get a summary of all USATT ratings,

```shell
usatt summary --outfile usatt.csv
```

This  will dump all USATT ratings to a CSV file.