extended_stats 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,37 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ end_of_line = lf
7
+ indent_style = space
8
+ indent_size = 4
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.{html,css,js,json,sh,yml,yaml}]
13
+ indent_size = 2
14
+
15
+ [*.bat]
16
+ indent_style = tab
17
+ end_of_line = crlf
18
+
19
+ [LICENSE]
20
+ insert_final_newline = false
21
+
22
+ [justfile]
23
+ indent_style = space
24
+ indent_size = 4
25
+
26
+ # Ignore binary or generated files
27
+ [*.{png,jpg,gif,ico,woff,woff2,ttf,eot,svg,pdf}]
28
+ charset = unset
29
+ end_of_line = unset
30
+ indent_style = unset
31
+ indent_size = unset
32
+ trim_trailing_whitespace = unset
33
+ insert_final_newline = unset
34
+ max_line_length = unset
35
+
36
+ [*.{diff,patch}]
37
+ trim_trailing_whitespace = false
@@ -0,0 +1,60 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ build/
11
+ dist/
12
+ eggs/
13
+ .eggs/
14
+ *.egg-info/
15
+ *.egg
16
+ MANIFEST
17
+
18
+ # Unit test / coverage reports
19
+ htmlcov/
20
+ .tox/
21
+ .nox/
22
+ .coverage
23
+ .coverage.*
24
+ coverage.xml
25
+ .hypothesis/
26
+ .pytest_cache/
27
+
28
+ # Environments
29
+ .env
30
+ .envrc
31
+ .venv
32
+
33
+ # uv
34
+ # Generally recommended to include uv.lock in version control for
35
+ # reproducibility. Uncomment for libraries where you want consumers
36
+ # to resolve their own dependencies.
37
+ # uv.lock
38
+
39
+ # Ruff
40
+ .ruff_cache/
41
+
42
+ # Type checkers
43
+ .mypy_cache/
44
+ .dmypy.json
45
+ dmypy.json
46
+ .pyre/
47
+ .pytype/
48
+
49
+ # Documentation build output
50
+ site/
51
+
52
+ # IDE files
53
+ # .idea/
54
+ # .vscode/
55
+
56
+ # GitHub
57
+ .github/
58
+
59
+ # Containing files related to the README sections
60
+ docs/
@@ -0,0 +1,22 @@
1
+ # Unreleased
2
+
3
+ These are the changes that will go out in the next release.
4
+
5
+ ## Added
6
+
7
+ Extended Statistics started out as a project generated from [Cookiecutter PyPackage](https://github.com/audreyfeldroy/cookiecutter-pypackage) containing:
8
+
9
+ - Initial scaffold for Extended Statistics.
10
+ - `src/extended_stats/` package with CLI (Typer + Rich), py.typed marker
11
+ - Tests with pytest, coverage across Python 3.12/3.13/3.14
12
+ - CI via GitHub Actions: lint (Ruff), type check (ty), test matrix, coverage reporting
13
+ - Security scanning: CodeQL analysis for public repositories, Dependabot, and a Zizmor workflow audit
14
+ - Docs site with Zensical + mkdocstrings and a GitHub Pages deployment workflow
15
+ - Trusted publishing to PyPI with OIDC and build provenance attestation
16
+ - `justfile` with dev commands: qa, test, type-check, docs-serve, release
17
+ - Issue templates, PR template, contributing guide, code of conduct, security policy
18
+ - MIT license, .editorconfig, .gitignore
19
+
20
+ ### Contributors
21
+
22
+ [@dreireyez](https://github.com/dreireyez) (Djem Andreif Reyes) created Extended Statistics.
@@ -0,0 +1,89 @@
1
+ # Contributor Covenant 3.0
2
+
3
+ ## Our Pledge
4
+
5
+ We pledge to make our community welcoming, safe, and equitable for all.
6
+
7
+ We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status. The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant.
8
+
9
+
10
+ ## Encouraged Behaviors
11
+
12
+ While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language.
13
+
14
+ With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including:
15
+
16
+ 1. Respecting the **purpose of our community**, our activities, and our ways of gathering.
17
+ 2. Engaging **kindly and honestly** with others.
18
+ 3. Respecting **different viewpoints** and experiences.
19
+ 4. **Taking responsibility** for our actions and contributions.
20
+ 5. Gracefully giving and accepting **constructive feedback**.
21
+ 6. Committing to **repairing harm** when it occurs.
22
+ 7. Behaving in other ways that promote and sustain the **well-being of our community**.
23
+
24
+
25
+ ## Restricted Behaviors
26
+
27
+ We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct.
28
+
29
+ 1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
30
+ 2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people.
31
+ 3. **Stereotyping or discrimination.** Characterizing anyone’s personality or behavior on the basis of immutable identities or traits.
32
+ 4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community.
33
+ 5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission.
34
+ 6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group.
35
+ 7. Behaving in other ways that **threaten the well-being** of our community.
36
+
37
+ ### Other Restrictions
38
+
39
+ 1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions.
40
+ 2. **Failing to credit sources.** Not properly crediting the sources of content you contribute.
41
+ 3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community.
42
+ 4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors.
43
+
44
+
45
+ ## Reporting an Issue
46
+
47
+ Tensions can occur between community members even when they are trying their best to collaborate. Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm.
48
+
49
+ When an incident does occur, it is important to report it promptly. To report a possible violation, email contact.dafreyes@gmail.com.
50
+
51
+ Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution.
52
+
53
+
54
+ ## Addressing and Repairing Harm
55
+
56
+ If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. Depending on the severity of a violation, lower rungs on the ladder may be skipped.
57
+
58
+ 1) Warning
59
+ 1) Event: A violation involving a single incident or series of incidents.
60
+ 2) Consequence: A private, written warning from the Community Moderators.
61
+ 3) Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations.
62
+ 2) Temporarily Limited Activities
63
+ 1) Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation.
64
+ 2) Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members.
65
+ 3) Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over.
66
+ 3) Temporary Suspension
67
+ 1) Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation.
68
+ 2) Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions.
69
+ 3) Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted.
70
+ 4) Permanent Ban
71
+ 1) Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member.
72
+ 2) Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior.
73
+ 3) Repair: There is no possible repair in cases of this severity.
74
+
75
+ This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community.
76
+
77
+
78
+ ## Scope
79
+
80
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
81
+
82
+
83
+ ## Attribution
84
+
85
+ This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).
86
+
87
+ Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/)
88
+
89
+ For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). The enforcement ladder was inspired by the work of [Mozilla’s code of conduct team](https://github.com/mozilla/inclusion).
@@ -0,0 +1,160 @@
1
+ # Contributing
2
+
3
+ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
4
+
5
+ You can contribute in many ways:
6
+
7
+ ## Types of Contributions
8
+
9
+ ### Report Bugs
10
+
11
+ Report bugs at https://github.com/dreireyez/extended_stats/issues.
12
+
13
+ If you are reporting a bug, please include:
14
+
15
+ - Your operating system name and version.
16
+ - Any details about your local setup that might be helpful in troubleshooting.
17
+ - Detailed steps to reproduce the bug.
18
+
19
+ ### Fix Bugs
20
+
21
+ Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
22
+
23
+ ### Implement Features
24
+
25
+ Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
26
+
27
+ ### Write Documentation
28
+
29
+ Extended Statistics could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.
30
+
31
+ To preview the docs locally:
32
+
33
+ ```sh
34
+ just docs-serve
35
+ ```
36
+
37
+ This starts a local server at http://localhost:8000 with live reload. Edit
38
+ files in `docs/` or add docstrings to your code (the API reference page is
39
+ auto-generated). Run `just docs-build` to verify a production build.
40
+
41
+ Docs deploy automatically on push to `main` after GitHub Pages is enabled. If
42
+ the generator did not enable it, review the visibility implications first:
43
+ [Pages sites can be public even when their repositories are private](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site),
44
+ and the feature may require a paid GitHub plan for private repositories. Then
45
+ go to Settings > Pages, set the source to **GitHub Actions**, and enable the
46
+ deployment workflow:
47
+
48
+ ```bash
49
+ gh variable set DOCS_DEPLOYMENT_ENABLED \
50
+ --repo dreireyez/extended_stats \
51
+ --body true
52
+ ```
53
+
54
+ Until then, deployment stays paused and local preview and builds still work.
55
+
56
+ ### Submit Feedback
57
+
58
+ The best way to send feedback is to file an issue at https://github.com/dreireyez/extended_stats/issues.
59
+
60
+ If you are proposing a feature:
61
+
62
+ - Explain in detail how it would work.
63
+ - Keep the scope as narrow as possible, to make it easier to implement.
64
+ - Remember that this is a volunteer-driven project, and that contributions are welcome :)
65
+
66
+ ## Get Started!
67
+
68
+ Ready to contribute? Here's how to set up extended_stats for local development.
69
+
70
+ 1. Fork the extended_stats repo on GitHub.
71
+ 2. Clone your fork locally:
72
+
73
+ ```sh
74
+ git clone git@github.com:your_name_here/extended_stats.git
75
+ ```
76
+
77
+ 3. Install your local copy with uv:
78
+
79
+ ```sh
80
+ cd extended_stats/
81
+ uv sync
82
+ ```
83
+
84
+ 4. Create a branch for local development:
85
+
86
+ ```sh
87
+ git checkout -b name-of-your-bugfix-or-feature
88
+ ```
89
+
90
+ Now you can make your changes locally.
91
+
92
+ 5. When you're done making changes, verify formatting, linting, types, and tests without modifying files:
93
+
94
+ ```sh
95
+ just check
96
+ ```
97
+
98
+ Use `just fix` to apply Ruff's automatic fixes, or `just fix-and-check` to apply them before verification.
99
+
100
+ Or run the tests alone:
101
+
102
+ ```sh
103
+ just test
104
+ ```
105
+
106
+ 6. Commit your changes and push your branch to GitHub:
107
+
108
+ ```sh
109
+ git add .
110
+ git commit -m "Your detailed description of your changes."
111
+ git push origin name-of-your-bugfix-or-feature
112
+ ```
113
+
114
+ 7. Submit a pull request through the GitHub website.
115
+
116
+ ## Pull Request Guidelines
117
+
118
+ Before you submit a pull request, check that it meets these guidelines:
119
+
120
+ 1. The pull request should include tests.
121
+ 2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.
122
+ 3. The pull request should work for Python 3.12, 3.13, and 3.14. Tests run in GitHub Actions on every pull request to the main branch, make sure that the tests pass for all supported Python versions.
123
+
124
+ ## Tips
125
+
126
+ To run a subset of tests:
127
+
128
+ ```sh
129
+ uv run pytest tests/
130
+ ```
131
+
132
+ ## Releasing a New Version
133
+
134
+ 1. **Bump the version:**
135
+ ```bash
136
+ uv version <version> # or: uv version --bump minor
137
+ ```
138
+ 2. **Commit:**
139
+ ```bash
140
+ git add pyproject.toml uv.lock
141
+ git commit -m "Bump version to <version>"
142
+ ```
143
+ 3. **Release:**
144
+ ```bash
145
+ just release
146
+ ```
147
+ This finalizes `CHANGELOG/unreleased.md` as
148
+ `CHANGELOG/<version>.md`, creates a fresh unreleased file, commits and
149
+ pushes that notes commit, then creates an annotated `v*` tag and GitHub
150
+ Release. The tag push triggers `.github/workflows/publish.yml`, which
151
+ builds the package, generates SLSA provenance attestations, and publishes
152
+ to PyPI via trusted publishing.
153
+
154
+ Record release-worthy changes in `CHANGELOG/unreleased.md` as they merge.
155
+ Projects generated before this changelog lifecycle was introduced remain
156
+ compatible when they already have a versioned changelog file.
157
+
158
+ ## Code of Conduct
159
+
160
+ Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026, Djem Andreif Reyes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.5
2
+ Name: extended_stats
3
+ Version: 0.1.0
4
+ Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
5
+ Project-URL: bugs, https://github.com/dreireyez/extended_stats/issues
6
+ Project-URL: changelog, https://github.com/dreireyez/extended_stats/releases
7
+ Project-URL: documentation, https://dreireyez.github.io/extended_stats/
8
+ Project-URL: homepage, https://github.com/dreireyez/extended_stats
9
+ Author-email: Djem Andreif Reyes <contact.dafreyes@gmail.com>
10
+ Maintainer-email: Djem Andreif Reyes <contact.dafreyes@gmail.com>
11
+ License: MIT
12
+ License-File: LICENSE
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Typing :: Typed
16
+ Requires-Python: >=3.9
17
+ Requires-Dist: numpy>=1.24.0
18
+ Requires-Dist: pandas>=2.0.0
19
+ Requires-Dist: rich
20
+ Requires-Dist: typer
21
+ Description-Content-Type: text/markdown
22
+
23
+ # Extended Statistics
24
+
25
+ [![PyPI version](https://img.shields.io/pypi/v/extended_stats.svg)](https://pypi.org/project/extended_stats/)
26
+ [![PyPI downloads](https://static.pepy.tech/badge/extended_stats/month)](https://pepy.tech/projects/extended_stats)
27
+
28
+ **Extended Statistics** is a lightweight toolkit for comparing, profiling, and cleaning pandas DataFrames. It combines dataset diffing, an extended summary, and a handful of common cleaning transformations into a single, subpackage-organized API — built as a proof of concept for practicing Python package development fundamentals (structure, subpackages, testing, and packaging).
29
+
30
+ * [GitHub](https://github.com/dreireyez/extended_stats/) | [PyPI](https://pypi.org/project/extended_stats/) | [Documentation](https://dreireyez.github.io/extended_stats/)
31
+ * Created by **Djem Andreif Reyes**
32
+ * MIT License
33
+
34
+ ## Features
35
+
36
+ * **Dataset diffing:** Compare two versions of a DataFrame and get a structured report of what changed: rows added/removed, columns added/removed, dtype changes, per-cell value changes (when a key column is provided), and shifts in summary statistics (mean/median/nulls) for numeric columns.
37
+ * **Human-readable diff summaries:** Turn a diff report into a plain-language sentence summary, no manual interpretation required.
38
+ * **Dataset profiling:** A single function that merges the useful parts of .describe() and .info() into one report: shape, memory usage, duplicate row count, and per-column stats (nulls, uniques, mean/median/std for numeric columns, top value/frequency for categorical columns).
39
+ * **Basic cleaning utilities:** Drop fully duplicate rows and standardize column names (lowercase, trimmed, underscore-separated) in one call each.
40
+ * **Subpackage-organized API:** Diffing, profiling, and cleaning each live in their own subpackage, with a top-level re-export layer so functions are accessible.
41
+
42
+ ## Installation
43
+
44
+ ### Stable Release
45
+
46
+ To install **Extended Statistics**, run this command in your terminal:
47
+
48
+ ```sh
49
+ uv add extended_stats
50
+ ```
51
+
52
+ Or if you prefer to use `pip`:
53
+
54
+ ```sh
55
+ pip install extended_stats
56
+ ```
57
+
58
+ ## From Source
59
+
60
+ The source files for Extended Statistics can be downloaded from the [Github repo](https://github.com/dreireyez/extended_stats).
61
+
62
+ You can either clone the public repository:
63
+
64
+ ```sh
65
+ git clone https://github.com/dreireyez/extended_stats
66
+ ```
67
+
68
+ Or download the [tarball](https://github.com/dreireyez/extended_stats/tarball/main):
69
+
70
+ ```sh
71
+ curl -OJL https://github.com/dreireyez/extended_stats/tarball/main
72
+ ```
73
+
74
+ Once you have a copy of the source, you can install it with:
75
+
76
+ ```sh
77
+ cd extended_stats
78
+ uv sync
79
+ ```
80
+
81
+ ## Usage
82
+
83
+ To use **Extended Statistics** in a project:
84
+
85
+ ```python
86
+ import extended_stats
87
+ ```
88
+
89
+ ## Documentation
90
+
91
+ Full documentation is available on
92
+ [GitHub Pages](https://dreireyez.github.io/extended_stats/).
93
+
94
+ ## Contributing
95
+
96
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and
97
+ documentation instructions.
98
+
99
+ ## Author
100
+
101
+ **Extended Statistics** was created in **2026** by **Djem Andreif Reyes**.
102
+
103
+ GitHub [@dreireyez](https://github.com/dreireyez) | PyPI [@dreireyez](https://pypi.org/user/dreireyez/)
@@ -0,0 +1,81 @@
1
+ # Extended Statistics
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/extended_stats.svg)](https://pypi.org/project/extended_stats/)
4
+ [![PyPI downloads](https://static.pepy.tech/badge/extended_stats/month)](https://pepy.tech/projects/extended_stats)
5
+
6
+ **Extended Statistics** is a lightweight toolkit for comparing, profiling, and cleaning pandas DataFrames. It combines dataset diffing, an extended summary, and a handful of common cleaning transformations into a single, subpackage-organized API — built as a proof of concept for practicing Python package development fundamentals (structure, subpackages, testing, and packaging).
7
+
8
+ * [GitHub](https://github.com/dreireyez/extended_stats/) | [PyPI](https://pypi.org/project/extended_stats/) | [Documentation](https://dreireyez.github.io/extended_stats/)
9
+ * Created by **Djem Andreif Reyes**
10
+ * MIT License
11
+
12
+ ## Features
13
+
14
+ * **Dataset diffing:** Compare two versions of a DataFrame and get a structured report of what changed: rows added/removed, columns added/removed, dtype changes, per-cell value changes (when a key column is provided), and shifts in summary statistics (mean/median/nulls) for numeric columns.
15
+ * **Human-readable diff summaries:** Turn a diff report into a plain-language sentence summary, no manual interpretation required.
16
+ * **Dataset profiling:** A single function that merges the useful parts of .describe() and .info() into one report: shape, memory usage, duplicate row count, and per-column stats (nulls, uniques, mean/median/std for numeric columns, top value/frequency for categorical columns).
17
+ * **Basic cleaning utilities:** Drop fully duplicate rows and standardize column names (lowercase, trimmed, underscore-separated) in one call each.
18
+ * **Subpackage-organized API:** Diffing, profiling, and cleaning each live in their own subpackage, with a top-level re-export layer so functions are accessible.
19
+
20
+ ## Installation
21
+
22
+ ### Stable Release
23
+
24
+ To install **Extended Statistics**, run this command in your terminal:
25
+
26
+ ```sh
27
+ uv add extended_stats
28
+ ```
29
+
30
+ Or if you prefer to use `pip`:
31
+
32
+ ```sh
33
+ pip install extended_stats
34
+ ```
35
+
36
+ ## From Source
37
+
38
+ The source files for Extended Statistics can be downloaded from the [Github repo](https://github.com/dreireyez/extended_stats).
39
+
40
+ You can either clone the public repository:
41
+
42
+ ```sh
43
+ git clone https://github.com/dreireyez/extended_stats
44
+ ```
45
+
46
+ Or download the [tarball](https://github.com/dreireyez/extended_stats/tarball/main):
47
+
48
+ ```sh
49
+ curl -OJL https://github.com/dreireyez/extended_stats/tarball/main
50
+ ```
51
+
52
+ Once you have a copy of the source, you can install it with:
53
+
54
+ ```sh
55
+ cd extended_stats
56
+ uv sync
57
+ ```
58
+
59
+ ## Usage
60
+
61
+ To use **Extended Statistics** in a project:
62
+
63
+ ```python
64
+ import extended_stats
65
+ ```
66
+
67
+ ## Documentation
68
+
69
+ Full documentation is available on
70
+ [GitHub Pages](https://dreireyez.github.io/extended_stats/).
71
+
72
+ ## Contributing
73
+
74
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing, and
75
+ documentation instructions.
76
+
77
+ ## Author
78
+
79
+ **Extended Statistics** was created in **2026** by **Djem Andreif Reyes**.
80
+
81
+ GitHub [@dreireyez](https://github.com/dreireyez) | PyPI [@dreireyez](https://pypi.org/user/dreireyez/)
@@ -0,0 +1,32 @@
1
+ # Security Policy
2
+
3
+ ## Reporting a Vulnerability
4
+
5
+ If you find a security vulnerability in Extended Statistics, please report it through [GitHub's private vulnerability reporting](https://github.com/dreireyez/extended_stats/security/advisories/new). This keeps the details private while we work on a fix.
6
+
7
+ Please include:
8
+
9
+ - What you found and how to reproduce it
10
+ - Which version you're using
11
+ - Any relevant logs or output (redact secrets)
12
+
13
+ ## Security Measures
14
+
15
+ This project ships with security hardening out of the box:
16
+
17
+ - **CodeQL** scans public repositories for injection, SSRF, path traversal, and other dataflow vulnerabilities using the `security-extended` query suite. Private repositories can opt in after enabling GitHub Code Security.
18
+ - **Zizmor** audits GitHub Actions workflows for excessive permissions, unpinned actions, credential exposure, and cache poisoning risks
19
+ - **Dependabot** opens PRs for uv dependencies and SHA-pinned GitHub Actions, with a 7-day cooldown to avoid adopting compromised releases immediately
20
+ - **All actions pinned by SHA** with version comments, not floating tags
21
+ - **Minimal workflow permissions** (`permissions: {}` at the top level, scoped per job)
22
+ - **`persist-credentials: false`** on checkout steps to prevent token leakage
23
+
24
+ ## Response Times
25
+
26
+ This is a volunteer-maintained open source project. Security reports are taken seriously, but there are no guaranteed response times.
27
+
28
+ **Enterprise support** is available, with priority response SLAs. Contact contact.dafreyes@gmail.com for details.
29
+
30
+ ## Supported Versions
31
+
32
+ Security fixes are applied to the latest release on the `main` branch. There is no backport policy for older versions.