panars: Polars with Pandas-like Interface
Panars is a powerful wrapper that brings the familiar Pandas API to Polars, combining the best of both worlds: Polars' speed and efficiency with Pandas' user-friendly interface.
Key Features
- Pandas-like API: Use Polars with syntax you already know from Pandas.
- High Performance: Leverage Polars' speed while writing Pandas-style code.
- Easy Migration: Seamlessly transition existing Pandas code to Polars.
- Best of Both Worlds: Combine Pandas' ease of use with Polars' efficiency.
Installation
pip install panars
Quick Start
import panars as pa
# Create a DataFrame
df = pa.DataFrame({
"A": [1, 2, 3, 4],
"B": [5, 6, 7, 8],
"C": [1, 1, 2, 2]
})
# Familiar Pandas operations
print(df.head())
print(df.groupby("C").sum())
print(df.filter(df["A"] > 2))
# Efficient data manipulation
result = (df.groupby(["C"])
.agg({"A": ["mean", "sum"], "B": ["min", "max"]})
.sort_values("C"))
print(result)
Why panars?
- Familiar Syntax: Write Polars code using Pandas conventions you already know.
- Performance Boost: Gain Polars' speed advantages without learning a new API.
- Gradual Migration: Easily port existing Pandas projects to Polars over time.
- Community-Driven: Open-source project welcoming contributions and feedback.
Documentation
For detailed usage instructions and API reference, visit our documentation.
Contributing
We welcome contributions! Please see our Contributing Guide for more details.
License
Panars is released under the MIT License. See the LICENSE file for details.
Metadata
Release files for panars 0.1.2
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 | |
|---|---|---|---|---|
| panars-0.1.2.tar.gz | 21.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| panars-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.9 kB
Release files / panars-0.1.2.tar.gz
| Download URL | panars-0.1.2.tar.gz |
|---|---|
| Size | 21.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfcc97108e912e78d753625e1ce7760ec8f4dbea65e806eb9c39caf8aecae56a
|
|
BLAKE2b-256 checksum How to use checksums |
22fd8790d5623d54f74912d57b9ab36db73beb2063290c151258caa07855eac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.3 CPython/3.12.7 Darwin/24.0.0
|
Release files / panars-0.1.2-py3-none-any.whl
| Download URL | panars-0.1.2-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e76e08f7cf166d92aaa20c33467f4f684a2b50977b31e183ce9085d6351869d5
|
|
BLAKE2b-256 checksum How to use checksums |
f87b527c1e38a451deff98afa45dccd62e3a316a00adbffbbbb94d4d3146d62c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.19.3 CPython/3.12.7 Darwin/24.0.0
|
Security for panars 0.1.2
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.