This release is a pre-release and may not be stable for production use.
PyNorma
This project is currently under construction
"You gotta do it, you can do it, but you just don't wanna do it."
PyNorma is a Python library that provides insights and automation for preprocessing messy, real-world tabular data. It's designed for data scientists, analysts, and anyone who's tired of the tedious task of cleaning up unstructured spreadsheets.
Key Features
- Smart Table Detection: Automatically finds the main data table within messy Excel or CSV files, ignoring surrounding comments and empty spaces.
- Advanced Preprocessing: Includes powerful tools like:
Flattener: Converts wide, multi-level header tables into a tidy, long format.Atomizer: Splits cells with multiple values into distinct rows or columns.Clarifier: Standardizes data based on a custom dictionary.- ...and more.
- Developer-Friendly: Designed by a lazy developer for lazy (but smart) developers.
Installation
pip install pynorma
Quickstart
Here's a simple example of reading a messy Excel file and automatically trimming it to the core data table.
from pynorma.io import parser
from pynorma.preprocessor import trimmer
# 1. Parse the file - PyNorma automatically detects the file type.
raw_df = parser.parse("examples/townbusiness1.csv")
# 2. Automatically trim the dataframe to the main table area.
clean_df = trimmer.trim_dataframe(raw_df, trim_mode="auto")
print("Successfully cleaned the dataframe!")
print(clean_df.head())
Author
nash-dir (https://github.com/nash-dir)
License
This project is licensed under the MIT License.
Metadata
Release files for pynorma 1.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pynorma-1.0.0a1.tar.gz | 17.5 kB | Without provenance | Details for pynorma-1.0.0a1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pynorma-1.0.0a1-py3-none-any.whl | Python 3 | none | any | Details for pynorma-1.0.0a1-py3-none-any.whl |
Total release size: 38.9 kB
Release files / pynorma-1.0.0a1.tar.gz
| Download URL | pynorma-1.0.0a1.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1109703f2a1b8028fd3d6b3032177f5abbe1b0b5ae1b2883c71ed020c35b20c2
|
|
BLAKE2b-256 checksum How to use checksums |
8e98922bc619b104e9227629aa9ae0c4dcefd26efe9b0b169533f36b857f9288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / pynorma-1.0.0a1-py3-none-any.whl
| Download URL | pynorma-1.0.0a1-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
766dae0e8a541d58541a5006a98391d0f1eb1ea8398cd22c5367f27ca90f0c28
|
|
BLAKE2b-256 checksum How to use checksums |
e0f9789c19fa6131082daec1cc454f03f2bb1bc5887028cea89f11e60a3ff350
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for pynorma 1.0.0a1
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.