pandas_lint
pandas_lint is a static code analysis tool designed to help you write more efficient and readable Pandas and NumPy code. It detects common anti-patterns and performance bottlenecks, offering suggestions to improve your data processing pipelines.
Features
- Performance Optimization: Identifies slow operations like
apply(), usage ofiterrows(), and inefficient string manipulations. - Best Practices: Enforces standard Pandas coding styles and conventions.
- Safety: Warns about potential issues like
SettingWithCopyWarningrisks and modification of views. - Easy Integration: Zero-config needed to get started, but fully configurable via
pyproject.toml.
Installation
You can install pandas_lint directly from PyPI:
pip install pandas-linter
Usage
Command Line Interface
To lint a file or directory:
pandas-lint path/to/your/script.py
pandas-lint path/to/your/project/
To automatically fix issues where possible (experimental):
pandas-lint path/to/script.py --autofix
Configuration
You can configure pandas_lint in your pyproject.toml file:
[tool.pandas-linter]
ignore = ["STY001", "PERF002"]
Contributing
We welcome contributions! Please see CONTRIBUTING.md for details on how to get started.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for pandas-linter 0.1.0
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 |
|---|---|---|---|---|
| pandas_linter-0.1.0.tar.gz | 11.2 kB | Without provenance | Details for pandas_linter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_linter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pandas_linter-0.1.0-py3-none-any.whl |
Total release size: 21.1 kB
Release files / pandas_linter-0.1.0.tar.gz
| Download URL | pandas_linter-0.1.0.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72db2f29fdd539649342fc8f615f6b8b9159c4f82032fbe49c4d9153494ec708
|
|
BLAKE2b-256 checksum How to use checksums |
ba186e2eab14dc5dd1b298d0b06e90e234e4b2910412a66928eb82e397ccf7a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / pandas_linter-0.1.0-py3-none-any.whl
| Download URL | pandas_linter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45977ca2783c17eea8d6c0618749a55cba68f8640799360a4e15935e40c5eb76
|
|
BLAKE2b-256 checksum How to use checksums |
693635807cdef16ad55c9564e1732f898a974c04e86df776d5c58c095093b68d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Security for pandas-linter 0.1.0
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.