Default template for PDM package
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
panars-0.1.2.tar.gz
(21.5 kB
view details)
Built Distribution
panars-0.1.2-py3-none-any.whl
(19.4 kB
view details)
File details
Details for the file panars-0.1.2.tar.gz
.
File metadata
- Download URL: panars-0.1.2.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.3 CPython/3.12.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfcc97108e912e78d753625e1ce7760ec8f4dbea65e806eb9c39caf8aecae56a |
|
MD5 | 26aec7f0c58bc2175e2769ee281f9e88 |
|
BLAKE2b-256 | 22fd8790d5623d54f74912d57b9ab36db73beb2063290c151258caa07855eac8 |
File details
Details for the file panars-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: panars-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.19.3 CPython/3.12.7 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e76e08f7cf166d92aaa20c33467f4f684a2b50977b31e183ce9085d6351869d5 |
|
MD5 | 959cf953d7014f8e4297d07ffceaa8a6 |
|
BLAKE2b-256 | f87b527c1e38a451deff98afa45dccd62e3a316a00adbffbbbb94d4d3146d62c |