Skip to main content

A lightweight and extensible Python package for managing data, tailored for researchers working with structured data.

Project description

📦 DWrappr

pypi versions License: MIT

A lightweight and extensible Python package for managing data, tailored for researchers working with structured data. In addition to general data management features, the package introduces a data structure specifically optimized for ML research. This common format enables researchers to efficiently test new algorithms and methods, streamlining collaboration and ensuring consistency in data management across projects.

Under development.

🧩 Features

  • 🗃️ Consistent dataset object structure for handling structured data in ML use cases
  • 🔄 Support for building a file-based internal dataset collaboration platform for researchers
  • 🧰 General utilities for managing data like saving and loading

📄 Help

See Documentation for details.

🛠️ Package Installation

pip install dwrappr

🚀 Quickstart Example

show available datasets in directory

# examples/loading_datasets.py
from dwrappr import DataSet

# Adjust the path according to the location of the datasets.
PATH_TO_DATA_DIR = "./datasets/"
available_datasets = DataSet.get_available_datasets_in_folder(path=PATH_TO_DATA_DIR)
print(available_datasets)

Example output:

                 name  ...                      local_filepath
0   example_dataset_1  ...  ./datasets/example_dataset_1.joblib
1   example_dataset_2  ...  ./datasets/example_dataset_2.joblib

load dataset from available datasets

# examples/loading_datasets.py
row_of_dataset_to_load = 0
ds = DataSet.load(available_datasets.iloc[row_of_dataset_to_load]['local_filepath'])
print(ds.as_df.head(2))

Example output:

[12 rows x 12 columns]
   UDI Product ID Type  Air temperature [K]  ...    HDF    PWF    OSF    RNF
0    1     M14860    M                298.1  ...  False  False  False  False
1    2     L47181    L                298.2  ...  False  False  False  False

load dataset directly

# examples/loading_datasets.py
PATH_TO_DATASET = "local path to your dataset"
ds = DataSet.load(PATH_TO_DATASET)

🔧 Maintainer

This project is maintained by Nils

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dwrappr-0.0.6.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dwrappr-0.0.6-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file dwrappr-0.0.6.tar.gz.

File metadata

  • Download URL: dwrappr-0.0.6.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for dwrappr-0.0.6.tar.gz
Algorithm Hash digest
SHA256 8b6174c8634fe4255de016dfa06344750d6dd07f6cd213b9de8a1decfd4819ed
MD5 1fe5ad17ab54a0fdf18808bbded4e4ab
BLAKE2b-256 3a98054f2fc7356ebed6e61c358f1f6082d577ceb230ea35c3804b4c29ce3904

See more details on using hashes here.

File details

Details for the file dwrappr-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: dwrappr-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for dwrappr-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e017554defe7982b6fbef5b91803ff812423920b3fb5aaf4937f9d2dd3570c
MD5 7670806cf8ede173e123c3bbc4b15fe9
BLAKE2b-256 3e68a061f88af201b01abdb90e0ff2ea9596e5209f7cb2276a762a0e33392f2b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page