Skip to main content

Polars plugin to decode strings.

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

import polars as pl
import polars_deunicode_string as deunicode


df = pl.DataFrame(
    {
        "name": ["Jhon", "María", "José", "Eva-lin"],
        "city": ["Bogotá", "Tunja", "Medellín", "Nariño"],
    }
)
normalized_df = df.select([
    deunicode.decode_string(pl.col(pl.String))
])
print(df)
>>> Data:

shape: (4, 2)
┌─────────┬──────────┐
 name     city     
 ---      ---      
 str      str      
╞═════════╪══════════╡
 Jhon     Bogotá   
 María    Tunja    
 José     Medellín 
 Eva-lin  Nariño   
└─────────┴──────────┘

print(normalized_df)
>>> Normalized Data:

shape: (4, 2)
┌─────────┬──────────┐
 name     city     
 ---      ---      
 str      str      
╞═════════╪══════════╡
 Jhon     Bogota   
 Maria    Tunja    
 Jose     Medellin 
 Eva-lin  Narino   
└─────────┴──────────┘

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.2.6.tar.gz (33.1 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.2.6-cp38-abi3-win_amd64.whl (4.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

polars_deunicode_string-0.2.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.0 MB view details)

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

polars_deunicode_string-0.2.6-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (5.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ i686

polars_deunicode_string-0.2.6-cp38-abi3-macosx_11_0_arm64.whl (4.0 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

polars_deunicode_string-0.2.6-cp38-abi3-macosx_10_12_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6.tar.gz
Algorithm Hash digest
SHA256 f232af945a77888ba938296d900a8591e83ef50f6997329cbcb4531f6c2ce999
MD5 b457c45b362de2490462d518612dd89c
BLAKE2b-256 7dab816c2e62c6559f158986c5e68956364440c98e8ee02493b2106690a2e940

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 34900caa4438f7dde9cc5c6e78ceafc9935ea3f3c89cb74533d659c7df4f38ca
MD5 3baf7d703bf13c69cead93c02fcd2108
BLAKE2b-256 b9db9737fee01f9bdbb32b14f9c2771b00f0a08c93581bc2c307bb8fce756654

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4320edbcbd3e70b9104c91b22e58242fece2a870954391cad645f122c890b759
MD5 a46e4bb53fd21399dbef5bdc66e7baee
BLAKE2b-256 e5f8c9377a649200891825f8fa789f3dcbda079ffd8771b46af97741c307a1e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 0d7e051d89ea911c59f22b88765f6b600b56d706abdabfe036195b7b67cdaa44
MD5 b0833b716e1f79cfb19b865c3a21d6a0
BLAKE2b-256 6dd62cc28b087fe2ed460d85964745f168c7db6c7f2f0e6a0995d110a6b9ef98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f27db8ec787cbaa343bd41e648688e35c1bbab943964f36492870f57845eae0
MD5 07bed18ab73f3f1f1ded20e585cfdad1
BLAKE2b-256 7876e01eeffd4a4aa5375296425f1c175cdfafe47740d36438a02eb44b22da00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for polars_deunicode_string-0.2.6-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1d1e8b1c20e115d2c151ca8ee789886ff74190c914df4b26e36f49463f34ecce
MD5 80d691cbce263d44624f6861c0612dcb
BLAKE2b-256 e8f344b82526c7e4c2dd905484f7e189abcd30736fa7860d94a94eada146c97a

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