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 PyPI - Implementation PyPI - Status

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

Installation

pip install polars-deunicode-string

Basic Example

import polars-deunicode-string as dunicode


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([dunicode("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.1.tar.gz (26.7 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.1-cp38-abi3-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8+Windows x86-64

polars_deunicode_string-0.1.1-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.1-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.1-cp38-abi3-macosx_11_0_arm64.whl (2.9 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

polars_deunicode_string-0.1.1-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.1.tar.gz.

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1.tar.gz
Algorithm Hash digest
SHA256 38618808d4b7b9ddde57dae200a127e81149504fcd77436f73248c571bdba91c
MD5 69fd6c81728a6d3f09eef5fee4cf19a4
BLAKE2b-256 cb63b4e7e6e7361bc6ecdc9a1e39d1497a3325a333262d7c0b58f0a5d749514f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 70136a613bcf10cb9d2fb81ad2f0f519464c88b5c5dddece198ae5cfa7d7da9d
MD5 3bbfd96dfddb99d746ad0ba71e8b6bed
BLAKE2b-256 361b35799c899cc2c1656677e19ac495084f8c42873ad0d352e7d5c0d5a5ecb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb1a46d8d6ac6de72deca7f396e9428282b3b8ac32195f083f767e8ce494367b
MD5 e5a7c35afba1980ab80b049b55711e52
BLAKE2b-256 e05a781fc834689600011ee77a0d75859e6164e6272ca40f3a4f128634ce375b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 deb253f584380e31e941b7974ee796c66d7cf47e8dbff3f198da34341df97f48
MD5 39ccd31bf09a12876e74e542402ebbf3
BLAKE2b-256 9b2b006b465514f15c9e311c80b0fb349daf034dee1c254d92e482254c41cc9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e29e491173bc0243d2589fc988038db505790728997e57fc1462abdaf7e48e80
MD5 ec3fcb0747f31d30b9b6f51577abf6a8
BLAKE2b-256 a2602e260682bc7e6ab417ff27f2854d794086eb1e61c19af566f8d8f51c64c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.1.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1eebdf05258eb85d262960a0b14a1fdc31bd9ef873d99dee48d46d981ac210c0
MD5 997fcb99b8dab7d8c2206bea7bb45248
BLAKE2b-256 f5d89eeda854d4ff70555aebedb7ef9cf98b7a201b73216a7d7811eb990677ff

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