Skip to main content

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

Metadata

Release files for shivjot-core 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shivjot-core 1.0.5
File Size Uploaded Provenance Actions
shivjot_core-1.0.5.tar.gz 3.3 kB Without provenance Details for shivjot_core-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shivjot-core 1.0.5
File Interpreter ABI Platform Actions
shivjot_core-1.0.5-py3-none-any.whl Python 3 none any Details for shivjot_core-1.0.5-py3-none-any.whl

Total release size: 6.9 kB

Release files / shivjot_core-1.0.5.tar.gz

Download URL shivjot_core-1.0.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6dfb26c1412f50639ba9afefc98dce56635607feca1f48eb744d6455853bfb7b
BLAKE2b-256 checksum
How to use checksums
972bc7e507a0fe89fde9b5468f35bf1dd5ace8610370157d35b13753e6032143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / shivjot_core-1.0.5-py3-none-any.whl

Download URL shivjot_core-1.0.5-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0e1c51fd46a396f128e8d96f4bab71f04ea7fca39a2c0f385bc702ef0656fc6
BLAKE2b-256 checksum
How to use checksums
0d72f8ee31af419c00bdd81860cdef68ecd9c6af69638cf668147965438caa9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for shivjot-core 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page