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.\n

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.4.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.4-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dwrappr-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 6cad8cb4151ed8ce3134af07e4043550d9e10d5bcd9cd0553089a5f7602cd5e8
MD5 e97c7f02c5371a23f6b8790dc476220d
BLAKE2b-256 443179f8ce7a08326b7dab7e4c989c861f0d11fccfce256e506e66f2309dbb23

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dwrappr-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bd997f790e0491f8b1a9282b6e7a83a16e0ecbc9e4e9b3008fafa6808c527f9f
MD5 7a31aa132fb497f08d02eb7d5b30cd95
BLAKE2b-256 aa4c1e046e637afc5027727874e1b287a22c5fda5370681099a88193e9e4516e

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