The Data Transformation Library is a Python library that provides a set of functions for common data transformation tasks. It is designed to simplify the process of handling and processing data, making it easier for developers to work with various types of data structures.
Project description
Data Transformation Library
The Data Transformation Library is a Python library that provides a set of functions for common data transformation tasks. It is designed to simplify the process of handling and processing data, making it easier for developers to work with various types of data structures.
Installation
You can install the library using pip:
pip install data-transformation-library
Features
transpose2d
The transpose2d function switches the axes of a 2D tensor, making it easy to transform rows into columns and vice versa.
import data_transformation_library
input_matrix = [[1, 2, 3], [4, 5, 6]]
transposed_matrix = data_transformation_library.transpose2d(input_matrix)
window1d
The window1d function creates overlapping or non-overlapping 1D windows from an input array. This is useful for tasks like time series analysis and data segmentation.
import data_transformation_library
import numpy as np
input_array = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
windows = data_transformation_library.window1d(input_array, size=3, shift=2, stride=1)
concolution2d
The convolution2d function performs 2D convolution between an input matrix and a kernel. This is a fundamental operation in image processing and feature extraction.
import data_transformation_library
import numpy as np
input_matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
kernel = np.array([[0, 1], [2, 3]])
stride = 1
result = data_transformation_library.convolution2d(input_matrix, kernel, stride=stride)
Link to the pip package
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
Built Distribution
File details
Details for the file data_transformation_library-0.1.7.tar.gz
.
File metadata
- Download URL: data_transformation_library-0.1.7.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f45120a4c5ff72152d811e09c0e2b3ba69125ca240396701f22fed15a2da18 |
|
MD5 | 874edf53d052ad5faf5e17076e8cb7fd |
|
BLAKE2b-256 | 9f5f78fe9647c00455068e4ed0974c44fd48f91283053d8eb9857e7c349b1752 |
File details
Details for the file data_transformation_library-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: data_transformation_library-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a4fd4eee7b0d4f0388226ab87ba7b788d8d1a0be549fe9583d80aa70eeb57da |
|
MD5 | 30509f9c48eab39bf1467a2432715f48 |
|
BLAKE2b-256 | baf4c814c476213ae87f2f79678a0c05e06bdebb1a2ab76f03e23714a92acb5f |