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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file project215_data_transformations-0.4.0.tar.gz.
File metadata
- Download URL: project215_data_transformations-0.4.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.6 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f35f88611e0ec7247d19f527ed681dde45f0407930d0a991b421104cd12a4bc2
|
|
| MD5 |
752530fc98ab2288664ec909955417e7
|
|
| BLAKE2b-256 |
99f3fe55006e7cc683d34283c932182688a8c11989492a4d412af60a482875e0
|
File details
Details for the file project215_data_transformations-0.4.0-py3-none-any.whl.
File metadata
- Download URL: project215_data_transformations-0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.6 Darwin/23.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3adba07ba1c387a8b0abc4bcd41ee4854ebdd8c7827568d60e6856919877eaae
|
|
| MD5 |
9d0aa0e63c1a61da58b2a68a58fd2ac9
|
|
| BLAKE2b-256 |
084a7cbad8ef34afc0a3b91cd2570b825260e61f9232b9a2a4dab706bb09c868
|