High-performance Python utilities for AI/ML and Image Processing.
Project description
shivjot-core
shivjot-core is a lightweight Python utility library that extends Pandas DataFrames with additional data analysis and preprocessing capabilities, along with a standalone image frequency transformation utility.
Installation
Install from PyPI:
pip install shivjot-core
Requirements
- Python 3.8+
- pandas
- numpy
Importing the Library
import pandas as pd
import shivjot_core # Enables the .shivjot accessor
from shivjot_core import convert_to_frequency
Importing shivjot_core automatically registers the .shivjot accessor on all Pandas DataFrames.
Pandas Accessor API
The library extends pandas.DataFrame with a custom accessor:
df.shivjot
1. analyze()
Signature
df.shivjot.analyze()
Description
Performs descriptive statistical analysis on all numeric columns in the DataFrame.
Automatically:
- Detects numeric columns
- Computes summary statistics
Parameters
None
Returns
A DataFrame containing descriptive statistics, including:
- count
- mean
- standard deviation
- minimum
- maximum
Example
df = pd.read_csv("data.csv")
summary = df.shivjot.analyze()
print(summary)
2. normalize()
Signature
df.shivjot.normalize()
Description
Applies Min-Max normalization to all numeric columns in the DataFrame.
The transformation formula used:
(x - min) / (max - min)
Each numeric column is scaled between 0 and 1.
Parameters
None
Returns
A new Pandas DataFrame with normalized numeric columns.
Example
normalized_df = df.shivjot.normalize()
Standalone Utility Function
convert_to_frequency()
Signature
convert_to_frequency(image_matrix)
Description
Transforms image data from the spatial domain to the frequency domain using Fast Fourier Transform (FFT).
Useful for:
- Image analysis
- Noise filtering
- Frequency-based image processing
Parameters
| Name | Type | Description |
|---|---|---|
| image_matrix | numpy.ndarray | A 2D (grayscale) or 3D (RGB) image array |
Returns
numpy.ndarray
Frequency-domain representation of the image.
Example
import numpy as np
# image_array is a NumPy array containing pixel values
frequency_data = convert_to_frequency(image_array)
Example Workflow
import pandas as pd
import shivjot_core
from shivjot_core import convert_to_frequency
# Load dataset
df = pd.read_csv("data.csv")
# Analyze dataset
print(df.shivjot.analyze())
# Normalize dataset
df_scaled = df.shivjot.normalize()
# Convert image to frequency domain
freq = convert_to_frequency(image_array)
License
MIT License
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 shivjot_core-1.0.5.tar.gz.
File metadata
- Download URL: shivjot_core-1.0.5.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dfb26c1412f50639ba9afefc98dce56635607feca1f48eb744d6455853bfb7b
|
|
| MD5 |
8121867f173174fbdafa7dc1c5602ba5
|
|
| BLAKE2b-256 |
972bc7e507a0fe89fde9b5468f35bf1dd5ace8610370157d35b13753e6032143
|
File details
Details for the file shivjot_core-1.0.5-py3-none-any.whl.
File metadata
- Download URL: shivjot_core-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0e1c51fd46a396f128e8d96f4bab71f04ea7fca39a2c0f385bc702ef0656fc6
|
|
| MD5 |
582a655b0e17c7907422662e85a3faa3
|
|
| BLAKE2b-256 |
0d72f8ee31af419c00bdd81860cdef68ecd9c6af69638cf668147965438caa9b
|