semvec/pypi-packages huggingface dataset:
balanced-splits 0.2.0
Balanced splitting utility
Requires Python: >=3.6

# balanced-splits
A utility library for splitting datasets in a balanced manner, with regards to several features.

### Installation
`pip install balanced-splits`

### Usage
```python
import numpy as np
import pandas as pd
from balanced_splits.split import optimized_split

sample_size = 100
df = pd.DataFrame({
    'age': np.random.normal(loc=45, scale=7., size=sample_size),
    'skill': 1 - np.random.power(4, size=sample_size),
    'type': np.random.choice(['T1', 'T2', 'T3'], size=sample_size)
})

A, B = optimized_split(df)

print('Partition 1\n===========\n')
print(A.describe())
print(A['type'].value_counts())

print('\n\n')

print('Partition 2\n===========\n')
print(B.describe())
print(B['type'].value_counts())

```

Check out the "examples" section for more examples.
prayer 0.1.1
Library, for working with PRAY files.
Requires Python: >=3.6

# Prayer ��

[<img src="prayer_team_logo_small.png" align="right" width="120">](https://github.com/Creatures-Developer-Network/prayer)

Prayer is a, work in progress, __Python3__ library to parse PRAY Files.

Prayer is **not** production ready ;)
json-reader 0.3.1
Read JSON and it's variants from a char stream.
Keywords: json,compiler,reader,stream

# JSON Reader

Read JSON and it's variants from a char stream.

## Install

```
pip install -U json-reader
```

## Usage

* See `json_reader/test_scanner.py`
* `cat example.log | python -m json_reader`
* `cat example.log | json_reader`

### Environemnts

* `JSON_INDENT`: specify the output indent in integer.
* `BY_LINES`: flag to read stdin line by line, then JSON content must NOT spand cross multiple lines.