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.tar.gz (25.7 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-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandas_uuid-0.1.tar.gz
  • Upload date:
  • Size: 25.7 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.tar.gz
Algorithm Hash digest
SHA256 9bbc8ac6b514dd9f42b26cf287c1accde231174e258a71bab9254ef8860dc541
MD5 147b89e83dea8c25390492a6c01f7cfa
BLAKE2b-256 5c135245c6a4c3b052de340d3ed0062641942ff419895b190148f8fac462f13f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandas_uuid-0.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-py3-none-any.whl.

File metadata

  • Download URL: pandas_uuid-0.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-py3-none-any.whl
Algorithm Hash digest
SHA256 d7d0b6d03fcb13fe88582451ba0716ab42fd8f80bc778545100be4574c6daf3f
MD5 d62dc8f79fa3ca078452215e62648002
BLAKE2b-256 68a1f760cd5993ad37eb03bafd5f037c853da3780e3872c3a0e11517420c578b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandas_uuid-0.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