Skip to main content

Pandas ExtensionArray / ExtensionDType for UUIDs.

Project description

Use UuidDtype as a pandas extension dtype:

>>> from uuid import uuid4
>>> import pandas as pd
>>> from pandas_uuid import UuidDtype
>>>
>>> s = pd.Series([uuid4()], dtype=UuidDtype())
>>> s
0    cd072cd8-be6f-4f62-ac4c-09c28206e7e3
dtype: uuid

Use specific storage types by importing UuidArray / ArrowUuidArray, or by using the storage parameter of UuidDtype:

>>> cls = UuidDtype("numpy").construct_array_type()
>>> cls
<class 'pandas_uuid.UuidArray'>
>>> cls.random(2, rng=42)
<UuidArray>
[8826d916-cdfb-21c6-c1ff-91a761565a70, 2416da6e-c212-cddb-8d88-00160eb686b2]
Length: 2, dtype: uuid

For advanced usage, see the Documentation.

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

pandas_uuid-0.1.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

pandas_uuid-0.1.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandas_uuid-0.1.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pandas_uuid-0.1.1.tar.gz
Algorithm Hash digest
SHA256 223766ee3dd160dd7eec41b0d370236ea396c9c378ab7c3c7c8faa379bc8446c
MD5 446d545007bb7cdfcdb0a5caa84849b6
BLAKE2b-256 9952c89bac553b0870d224c24003e2948f828d7f2b47cacf1a27c8337df920bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandas_uuid-0.1.1.tar.gz:

Publisher: release.yml on scverse/pandas-uuid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: pandas_uuid-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pandas_uuid-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fa4bb05cbe961baa25b783db40d28b3cd757ab24e80bc222af5ecd78bdab31
MD5 5db142fe9b24a5d7d100706149a5ef3b
BLAKE2b-256 e1dde8f5fb46d7c9e36bf7e72b6e28d1a8a392a1e814cedd1f506cba4cf85daa

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandas_uuid-0.1.1-py3-none-any.whl:

Publisher: release.yml on scverse/pandas-uuid

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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