Skip to main content

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

https://pypi.org/project/data-transformation-library/

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

data_transformation_library-0.1.3.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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