snorkelflow.utils.resolve_data_path
- snorkelflow.utils.resolve_data_path(path)
Resolve a MinIO path to a local file path.
This method can resolve a MinIO path only if it is called from the in-app notebook.
- Parameters:
path (
str
) – MinIO path (e.g., “minio://path/to/file.parquet”)- Returns:
File path
- Return type:
str
Examples
>>> import pandas as pd
>>> from snorkelflow.utils import resolve_data_path
>>> minio_path = "minio://path/to/file.parquet"
>>> resolved_path = resolve_data_path(minio_path)
>>> df = pd.read_parquet(resolved_path)