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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dwrappr-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 9f2e65f05d705e8ddbfe3f93f49f0d3ebddd6d4abc35da92f87fb90d24ae525f
MD5 56238063a5aa7c0000997ce55ed4506c
BLAKE2b-256 cf642067aa34093aab8fda4f8067759790d7bd7f7adbf41a78c2201a3f8f3c34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dwrappr-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 574f0e509a969af999f4165574f5ce6565bb6c4b4e24e91f0a6b7beca6a375c4
MD5 c95047dd4ad1dfcf3504572b3f67da86
BLAKE2b-256 f929cce0b302b5b0449190692f9c8157ba3ed6867b0bb85968fb12aba031dcf9

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