Skip to main content

A Narwhals plugin for Map datatype support

Project description

narwhals-map

PyPI

An experimental Narwhals plugin adding Map datatype.

[!TIP] See narwhals-dev/narwhals#3525 issue for more info.

Map is natively supported across all backends except for Polars.

Supported Narwhals backends:

Currently monkey-patches Narwhals to expose a new nw.col.map namespace.

Installation

$ uv add narwhals-map

Usage

import narwhals as nw
import narwhals_map  # registers the Map dtype and .map namespace

df = nw.from_native(native_df)  # use polars_map.Map for Polars-backed frames
result = df.select(nw.col("map_col").map.get("key1"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

narwhals_map-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

narwhals_map-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file narwhals_map-0.1.1.tar.gz.

File metadata

  • Download URL: narwhals_map-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for narwhals_map-0.1.1.tar.gz
Algorithm Hash digest
SHA256 347506656d234a2cdef3dbacec223de218243074e52e88dfe9771438e5b27e41
MD5 39843e63a7b0a5c6e0757c2d82f4a7bb
BLAKE2b-256 4772b78515a328bfe727f7ecf612f996fc1907caf2eb1b45c0252f891157081a

See more details on using hashes here.

File details

Details for the file narwhals_map-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: narwhals_map-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.5 {"installer":{"name":"uv","version":"0.11.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for narwhals_map-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b806a06cc3827d950d8544476b9992cfe65dbd8bf073382c9726463ad403657b
MD5 3a121141c74fc4a512745f37a1fbd6f8
BLAKE2b-256 734e83e49b301123a2543f6c30c48d5f14ff05cd6d2776f850c152ce7785a9bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page