Skip to main content

No project description provided

Project description

polars-deunicode-string

Crates.io

PIPY Docs.rs PyPI - License PyPI - Python Version PyPI - Downloads PyPI - Wheel PyPI - Format PyPI - Implementation

This is a simple polars-plugin that de-unicodes a string using the deunicode crate.

Installation

pip install polars-deunicode-string

Basic Example

from polars-deunicode-string import decode_string


df: pl.DataFrame = pl.DataFrame(
    {
        "text": ["Nariño", "Jose Fernando Ramírez Güiza",
                 "Córdoba", "Hello World!", None],
    }
)

Let´s de-unicode and make lowercase the column "text":

result*df: pl.DataFrame = (
df.lazy().with_columns([decode_string("text").name.prefix("decode")]).collect()
)
print(result_df)

shape: (5, 2)
┌─────────────────────────────┬─────────────────────────────┐
 text                         decode_text                 
 ---                          ---                         
 str                          str                         
╞═════════════════════════════╪═════════════════════════════╡
 Nariño                       Narino                      
 Jose Fernando Ramírez Güiza  Jose Fernando Ramirez Guiza 
 Córdoba                      Cordoba                     
 Hello World!                 Hello World!                
 null                         null                        
└─────────────────────────────┴─────────────────────────────┘

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

polars_deunicode_string-0.1.2.tar.gz (26.6 kB view details)

Uploaded Source

Built Distributions

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

polars_deunicode_string-0.1.2-cp38-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (4.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

polars_deunicode_string-0.1.2-cp38-abi3-macosx_11_0_arm64.whl (2.8 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

polars_deunicode_string-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file polars_deunicode_string-0.1.2.tar.gz.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0cd085e95e99d82dd3c2513a983aa46b2f0e8fe41343f7daad9dc92d023fed34
MD5 ab7b8df7e8984d260bd17c0fe5f6fffd
BLAKE2b-256 4eed3878cbdc4cca66b302e818715014d33574cd218c458e8d8eab17e92b8a9d

See more details on using hashes here.

File details

Details for the file polars_deunicode_string-0.1.2-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6ff410ac860e6c3e1b64e3dd5eeb1e609e0fc26d05fd8201300ff9c931b2a25c
MD5 b88979de73d5c0367d52104d243a8a4f
BLAKE2b-256 6d842d68cf5290d5feba4035a503a5e3c1fd7a791502d3b385908c51d9a07b00

See more details on using hashes here.

File details

Details for the file polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2ec2e1a2a9c1212d48956afa411ba9197932fc0154930e43d9de523f352dabb7
MD5 f8ffa35e404c3c4644202a3bc5debcd3
BLAKE2b-256 d9b97893f03f52a11746d1119005945eb5f8dc1708d530574047a6d42b6d1c5c

See more details on using hashes here.

File details

Details for the file polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2d57c1c699986864f3ee49076cd0162adae449919def43c98cc862d3717080a5
MD5 7df340c58bd6d24e958073befe7836d6
BLAKE2b-256 4f3ffbeb8ddff5d3faa38be9a8a038b6c5857ffc4bb27654f5eaa03c47f7b389

See more details on using hashes here.

File details

Details for the file polars_deunicode_string-0.1.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 078386efa43e17bfe4c9852c94b68c53506923300a6bb659c7f6da842ed6290e
MD5 c4b803abfcbe9773142795f0af4e10bb
BLAKE2b-256 f2884d098f6f15d97568081c5ae59482a1ec35fb8791e63064752c7f4845179c

See more details on using hashes here.

File details

Details for the file polars_deunicode_string-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ddc6d1f9bb11e9b938e0bc6e24165cece5d85255756faec02ed23c974570e7ee
MD5 62571d52da5906331d2b73a89be67be5
BLAKE2b-256 ee356f6b4fbe246c561958beec3608fd5b65a95d3de0b52af45c222d252f82b2

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