semvec/pypi-packages huggingface dataset:
LeEncoderML 0.1.2
Python script for managing categorical data in machine learning, ensuring proper encoding and handling of unseen labels.
License: MIT
Keywords: encoder

# Categorical Data Encoding for Machine Learning:
This repository contains a Python script for managing categorical data in preparation for machine learning tasks. It includes functions for encoding categorical data using LabelEncoder, decoding the encoded data, and handling unseen labels in the data. These functions help ensure that categorical data is properly processed and encoded for machine learning models.

## Key Features:

**text_to_numbers:** Encode categorical columns using LabelEncoder and save the encoders for later use.

**re_encode:** Re-encode categorical columns, handling unseen labels and maintaining consistency. Remove rows with unseen labels in a specific categorical column and re-encode the data.

**numbers_to_text:** Decode previously encoded categorical columns to their original values.

## Usage:
You can use these functions to preprocess and manage categorical data in your machine learning projects. They simplify the procedure of storing encoder files for individual datasets, allowing you to reuse them in the future. The script is designed to make it easier to work with categorical data, especially when dealing with unseen labels and encoding consistency.

## For more understanding reffer to the docstrings for detailed understanding on each function.
smbio 0.1.0
SMB protocol wrapper for python
License: MIT
Requires Python: >=3.10,<4.0

# smbio
SMB protocol wrapper for python

## Installation

```bash
pip install smbio
```

## Usage

```python
import smbio

connector = smbio.Connector(
    url=r"\\localhost\Share",
    username="Username",
    password="StrongPa$$w0rd"
)

with (
    connector.connect() as conn,
    connector.mount(conn) as session,
    connector.tree(session) as tree,
    connector.open(tree, r"Directory\Subdirectory") as directory
):
    files = smbio.glob(connector, directory, recurse=False)
    for out in files:
        if out.is_directory:
            continue
        
        with (
            open(smbio.Path(out.path), mode="rb") as inp_file,
            connector.open(tree, out.path) as out_file
        ):
            out_file.write(inp_file.read())
```