No project description provided
Project description
polars-deunicode-string
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: (4, 2)
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polars_deunicode_string-0.1.0.tar.gz.
File metadata
- Download URL: polars_deunicode_string-0.1.0.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86b7aa3361f08ea768866a02e1badb7577cc8a6ba46ff4143cdd01077d9bcbd3
|
|
| MD5 |
c2fb6db37bedfad4ea10a9527b95b30f
|
|
| BLAKE2b-256 |
b6e64ab2775f89e4e97763e44e15779d2d14ec9200fb322f317c062d417f52ff
|
File details
Details for the file polars_deunicode_string-0.1.0-cp38-abi3-win_amd64.whl.
File metadata
- Download URL: polars_deunicode_string-0.1.0-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c4133e5b0975ad1ec3cb7d7099dcec7dade553c4544e23c4f9b66b0ea8bfd1e
|
|
| MD5 |
ff16dd07a6fa76b4842f4bab6cb8f1e7
|
|
| BLAKE2b-256 |
66f6e601a6d0aadaed1c41d9ab06914005eaabbf5f47c782e3ff00020d996cb5
|
File details
Details for the file polars_deunicode_string-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: polars_deunicode_string-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.2 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0ce3bba04b78a735a429303a36394f999d04b20ae44c2129453ba893f2f4e7f
|
|
| MD5 |
27735a7e46e7b415fd92a5097a3a5360
|
|
| BLAKE2b-256 |
197ab317e2b142cbea8165035360f3f6284d3018875f18eec75326186dfaf248
|
File details
Details for the file polars_deunicode_string-0.1.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.
File metadata
- Download URL: polars_deunicode_string-0.1.0-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ebbb8995bd7d0d3f9f499ca96cb4044034d2a2d601bbba330f88e6e7c529c87
|
|
| MD5 |
1e1dac19c81b4a842be1e43f40b2cdec
|
|
| BLAKE2b-256 |
5d2f2db8c4b813ca961784b375b83b9ab4aadd278551adef0570ef36c4cda8d1
|
File details
Details for the file polars_deunicode_string-0.1.0-cp38-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: polars_deunicode_string-0.1.0-cp38-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.9 MB
- Tags: CPython 3.8+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9068e6dfdfeef4ae62b58f9a405c14e72165a7ae3be53a4ac91b4fe9f917e648
|
|
| MD5 |
509031d93b5c5e1102ed6dfec5c21a54
|
|
| BLAKE2b-256 |
805c1b42aeae7a0a11581313ed77edd69e3befd75c961e6c86c5ad0f87374e27
|
File details
Details for the file polars_deunicode_string-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: polars_deunicode_string-0.1.0-cp38-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 3.1 MB
- Tags: CPython 3.8+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: maturin/1.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb43c660975741ba06083a4ac7a953fb3db3f0ea525c63e99e86f974fcc0d62e
|
|
| MD5 |
5f74f1ae803e8889d8b38784b366fae1
|
|
| BLAKE2b-256 |
6ecca6b5e1b2c2862b4387debb8c34c5e85ea8b3d88a2943a910a6159847dff2
|