Skip to main content

This package includes transpose, time series windowing and cross-correlation libraries.

Project description

Introduction

In this project, the goal was to build and publish a python package to PyPI via poetry.

Data Transformations is a Python package that provides 3 functions for data transformation tasks. It includes functions for 2D matrix operations, 1D windowing, and 2D cross-correlation. This package is designed to help data scientists internally.

Installation

You can install Data Transformations using pip:

pip install project215-data-transformations

Usage

Here's how you can use the functions from Data Transformations in your Python code:

from project215_data_transformations import transpose2d, window1d, cross_correlation2d

# Example usage of the transpose2d function
matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
transposed = transpose2d(matrix)
print(transposed)

# Example usage of the window1d function
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
windows = window1d(data, size=3, shift=1, stride=1)
print(windows)

# Example usage of the cross_correlation2d function
import numpy as np
input_matrix = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
kernel = np.array([[0, 1], [1, 0]])
result = cross_correlation2d(input_matrix, kernel, stride=1)
print(result)

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

project215_data_transformations-0.4.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file project215_data_transformations-0.4.0.tar.gz.

File metadata

File hashes

Hashes for project215_data_transformations-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f35f88611e0ec7247d19f527ed681dde45f0407930d0a991b421104cd12a4bc2
MD5 752530fc98ab2288664ec909955417e7
BLAKE2b-256 99f3fe55006e7cc683d34283c932182688a8c11989492a4d412af60a482875e0

See more details on using hashes here.

File details

Details for the file project215_data_transformations-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for project215_data_transformations-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3adba07ba1c387a8b0abc4bcd41ee4854ebdd8c7827568d60e6856919877eaae
MD5 9d0aa0e63c1a61da58b2a68a58fd2ac9
BLAKE2b-256 084a7cbad8ef34afc0a3b91cd2570b825260e61f9232b9a2a4dab706bb09c868

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