RepositoryPython
narwhals-dev

narwhals-dev/narwhals

Lightweight and extensible compatibility layer between dataframe libraries!

1.8ksao
296fork
198issue
2lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: cudf

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: polars

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: ibis

#1 Repository của tuần

🦄 Narwhals: Một lớp tương thích nhẹ cho phép viết code dataframe một lần, chạy mọi nơi

Narwhals cung cấp một tập con của API Polars để bạn viết code agnostic, hoạt động với pandas, Polars, PyArrow, Dask, DuckDB, PySpark và nhiều thư viện khác mà không cần cài thêm gói nào.

Narwhals là một thư viện Python rất nhẹ, cho phép bạn viết các hàm xử lý dataframe mà không phụ thuộc vào bất kỳ thư viện dataframe nào. Chỉ cần dùng nw.from_native() để bọc DataFrame/LazyFrame đầu vào, dùng một tập con API của Polars để xử lý, rồi nw.to_native() để trả về đúng kiểu ban đầu — computation luôn chạy native trên thư viện gốc.

✨ Điểm nổi bật

  • Hỗ trợ đầy đủ API: cuDF, Modin, pandas, Polars, PyArrow.
  • Hỗ trợ thời gian chạy (lazy): Daft, Dask, DuckDB, Ibis, PySpark, SQLFrame.
  • Zero dependencies: Narwhals không cài thêm gì, chỉ sử dụng những gì người dùng truyền vào.
  • API dựa trên Polars: dùng một tập con API Polars, không cần học thêm.
  • Lazy và eager riêng biệt: hỗ trợ expressions để xây dựng pipeline linh hoạt.
  • Tương thích kiểu dữ liệu phức tạp: hỗ trợ hệ thống kiểu và chỉ số của pandas mà không gây xung đột.
  • 100% branch coverage: kiểm thử liên tục với phiên bản nightly của pandas và Polars.
  • Hiệu năng gần như không tăng: overhead rất nhỏ, xem chi tiết tại trang overhead.
  • Full static typing: hỗ trợ tốt cho IDE nhờ typing đầy đủ.
  • Backwards compatibility hoàn hảo: chính sách ổn định API rõ ràng, có thể tuỳ chọn.

💡 Vì sao đáng chú ý

Narwhals khác biệt từ các giải pháp khác ở chỗ nó không ép buộc người dùng phụ thuộc vào bất kỳ thư viện dataframe nào. Bạn có thể viết một hàm xử lý dataframe và dùng nó với cả pandas, Polars hay PySpark mà không thay đổi bất kỳ dòng code nào. Điều này đặc biệt hữu ích khi phát triển thư viện Python tổng quát hoặc xây dựng pipeline xử lý dữ liệu linh hoạt trên nhiều backend khác nhau.


#Python #DataEngineering #DataFrame #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryC++
NVIDIA/cudf

cuDF - GPU DataFrame Library

9.8k
Dec 1, 2026
RepositoryPython
dask/dask

Parallel computing with task scheduling

14.0k
Nov 25, 2026
RepositoryPython
shy3130/tick-stock-panel

TSP自托管、零运维的 A 股「自建策略 + 监控 + 回测」量化工作台引擎 | LLM能力驱使策略定制+个股分析+复盘 | 自由接入第三方数据源与个性化扩展数据 | 能力插件化可自由扩展开发

8.5k
Dec 1, 2026
RepositoryPython
pydata/xarray

N-D labeled arrays and datasets in Python

4.2k
Nov 26, 2026
RepositoryPython
uber/petastorm

Petastorm library enables single machine or distributed training and evaluation of deep learning models from datasets in Apache Parquet format. It supports ML frameworks such as Tensorflow, Pytorch, and PySpark and can be used from pure Python code.

1.9k
Jan 2, 2026
Dataset
yatin-superintelligence/Edge-Agent-Reasoning-WebSearch-260K

Edge Agent Reasoning WebSearch 260K Abstract The Edge-Agent-Reasoning-WebSearch-260K dataset is a massive, synthetically expert-engineered corpus of over 700 Million tokens, designed to train small, local models (SLMs) and edge-deployed agents in advanced problem deconstruction and self-aware reasoning. Rather than training a model to execute instructions directly—which often leads to hallucinations when context is missing—this dataset trains a model to act as a… See the full description on the dataset page: https://huggingface.co/datasets/yatin-superintelligence/Edge-Agent-Reasoning-WebSearch-260K.

♥0
6.3k
Mar 13, 2026
RepositoryRust
wheretrue/biobear

Work with bioinformatic files using Arrow, Polars, and/or DuckDB

199
Mar 10, 2025
Dataset
yatin-superintelligence/Creative-Professionals-Agentic-Tasks-1M

Creative Professionals Agentic Tasks (1M) Abstract A massive-scale, high-fidelity synthetic task dataset comprising 1,070,917 agentic command operations across 36 creative, technical, and engineering software environments. This dataset is engineered exclusively to stress-test, evaluate, and fine-tune multimodal AI agents designed for Agent Environment operation, complex software interaction, and multi-step reasoning within deep software infrastructures.… See the full description on the dataset page: https://huggingface.co/datasets/yatin-superintelligence/Creative-Professionals-Agentic-Tasks-1M.

♥0
447
Mar 13, 2026
RepositoryVue
hi-primus/bumblebee

🚕 A spreadsheet-like data preparation web app that works over Optimus (Pandas, Dask, cuDF, Dask-cuDF, Spark and Vaex)

141
Jul 15, 2023