ramen-data-filter
Dataset filtration for RAG ingestion and MLOps now lives in ramen-foundry. Install it with the data extra:
pip install "ramen-foundry[data]"
This package (0.1.2) is a bridge. It depends on ramen-foundry[data]>=0.2.7 and re-exports the same five public names, so existing code keeps running. Importing ramen_data_filter emits a DeprecationWarning.
Migrate
- from ramen_data_filter import filter_dataframe, filter_csv, FiltrationMode
+ from ramen_foundry.data import filter_dataframe, filter_csv, FiltrationMode
Public API, unchanged: FiltrationError, FiltrationMode, FiltrationResult, filter_csv, filter_dataframe.
Semantic imputation changed
In ramen-data-filter 0.1.1, mode="semantic_imputation" filled blocked rows with column means or values copied from allowed rows and kept every row.
In ramen_foundry.data, semantic imputation calls a healing_callback you provide. filter_dataframe also accepts a new optional keyword-only healing_callback:
def heal(row: dict, steering: str) -> dict:
... # return the cured row with the same columns
result = filter_dataframe(
df,
mode="semantic_imputation",
bundle_ids=["ramen__eu_ai_act_baseline"],
healing_callback=heal,
remediable_columns=["notes"], # optional: limit which columns the callback may change
)
Without a healing_callback, semantic mode returns only the allowed rows, the same as strict exclusion. Callers of 0.1.1 that relied on automatic imputation need to pass a callback.
Links
Metadata
Release files for ramen-data-filter 0.1.2
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 | Actions |
|---|---|---|---|---|
| ramen_data_filter-0.1.2.tar.gz | 2.6 kB | Without provenance | Details for ramen_data_filter-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ramen_data_filter-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ramen_data_filter-0.1.2-py3-none-any.whl |
Total release size: 6.1 kB
Release files / ramen_data_filter-0.1.2.tar.gz
| Download URL | ramen_data_filter-0.1.2.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f7bbc94a738de1afd0b4b7c8dcd6a0c1568f087ff7e0de10070855ea96dd223
|
|
BLAKE2b-256 checksum How to use checksums |
8260189865f52f112ba5a0ed48c036a17fccb0ba9271a3bf81b316be3fdbae94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Release files / ramen_data_filter-0.1.2-py3-none-any.whl
| Download URL | ramen_data_filter-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d172887deb83c6db309e525c3ff1df1594d2f53273bde7e783f11b36383d3c2
|
|
BLAKE2b-256 checksum How to use checksums |
fdf677738381e0ae5fab1b0ec440906cd9833e5a1ad380976bc471c4132a0c39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.10
|
Security for ramen-data-filter 0.1.2
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.