Skip to main content

pandas_lint

PyPI - Version PyPI - Python Version License

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 of iterrows(), and inefficient string manipulations.
  • Best Practices: Enforces standard Pandas coding styles and conventions.
  • Safety: Warns about potential issues like SettingWithCopyWarning risks 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)

Source distribution for pandas-linter 0.1.0
File Size Uploaded
pandas_linter-0.1.0.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pandas-linter 0.1.0
File Interpreter ABI Platform
pandas_linter-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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