math/py-narwhals 2.21.0 MidnightBSD
Extremely lightweight compatibility layer between dataframe libraries
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- Port added
- Last update
- Commit
8af06753b2- License
- mit
- Categories
- math, python
Description
Narwhals is an extremely lightweight and extensible compatibility layer between dataframe libraries!
- Full API support: cuDF, Modin, pandas, Polars, PyArrow
- Interchange-level support: Ibis, Vaex, anything else which implements the DataFrame Interchange Protocol
Seamlessly support all, without depending on any!
- Just use a subset of the Polars API, no need to learn anything new
- Zero dependencies, Narwhals only uses what the user passes in so your library can stay lightweight
- Separate lazy and eager APIs, use expressions
- Support pandas' complicated type system and index, without either getting in the way
- 100% branch coverage, tested against pandas and Polars nightly builds
- Negligible overhead, see overhead
- Let your IDE help you thanks to full static typing, see typing
- Perfect backwards compatibility policy, see stable api for how to opt-in
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | math/py-narwhals | 2.21.0 |
| FreeBSD | math/py-narwhals | 2.26.0 |
| DragonFly | math/py-narwhals | 1.30.0 |
| HardenedBSD | math/py-narwhals | 2.26.0 |
| GhostBSD | math/py-narwhals | 2.26.0 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}narwhals
From mports:
cd /usr/mports/math/py-narwhals && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}narwhals>0:math/py-narwhals
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}hatchling>=0: devel/py-hatchling
Build dependencies 1
Required by 1
Configuration
Options name: math_narwhals
| Option | Default | Description |
|---|---|---|
| DASK | off | Dask DataFrame support |
| DUCKDB | off | DuckDB API support |
| MODIN | off | Modin API support |
| PANDAS | off | Pandas API support |
| POLARS | off | Polars API support |
| PYARROW | off | PyArrow API support |
| SQL | off | SQL query LazyFrame support |
| SQLFRAME | off | SQLFrame support |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| narwhals-2.21.0.tar.gz | 633083 | 7c6e7f50528e62b7a967dd864d7e117d2955d38d4f730653ce46a9861358e2dc |
Master sites 2
- PYPI
- https://github.com/narwhals-dev/narwhals/releases/download/v2.21.0/
Commit history 1
| Date | Commit | Credits | Log message |
|---|---|---|---|
8af06753b2 |
Lucas Holt | databases/rubygem-flipper-active_record-rails70: update to 1.3.6 Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency.
AI-Assisted-by: OpenAI Codex <[email protected]>
Signed-off-by: Lucas Holt <[email protected]> |