cjk-data-profiling
Temporary CJK font support for Matplotlib and WordCloud used by
ydata-profiling and fg-data-profiling.
Installation
pip install cjk-data-profiling
Install the optional profiling dependency when needed:
pip install "cjk-data-profiling[profiling]"
Usage
Wrap report generation in cjk_data_profiling.
import pandas as pd
from data_profiling import ProfileReport
from cjk_data_profiling import cjk_data_profiling
dataframe = pd.DataFrame({"city": ["東京", "大阪"]})
with cjk_data_profiling("ja"):
report = ProfileReport(dataframe)
report.to_file("report.html")
Language-specific values are "ja", "zh-cn", "zh-tw", and "ko".
Use the additional "mixed" value only when a Noto Sans CJK font is
installed; it requires one font that covers Japanese, Chinese, and Korean text.
To prefer a different installed font, replace the candidate list for the relevant language before entering the context. The selected font must include the CJK characters used by the report.
from cjk_data_profiling import FONT_CANDIDATES, cjk_data_profiling
FONT_CANDIDATES["ja"] = ["Yu Gothic", "Meiryo"]
with cjk_data_profiling("ja"):
...
The context temporarily changes process-wide Matplotlib and WordCloud defaults. Concurrent use from multiple threads in the same process is not supported.
Testing
pytest
pytest -m integration
Run the non-integration suite on every supported Python version locally:
uv sync --group dev
uv run tox
tox obtains Python 3.11, 3.12, 3.13, and 3.14 through uv, then runs
pytest -m "not integration". Report-generation integration tests remain
opt-in.
Integration reports and WordCloud images are written to
test_output/integration-reports/ and are ignored by Git.
Metadata
Release files for cjk-data-profiling 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjk_data_profiling-0.1.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjk_data_profiling-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / cjk_data_profiling-0.1.0.tar.gz
| Download URL | cjk_data_profiling-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91dd7785594524a834c44186b3675af2124244774390f7ecc07c41a04d300974
|
|
BLAKE2b-256 checksum How to use checksums |
254bb9f468b628ad4da8f5a68dc526b2f9811bbe18b72b6dc8d6928ae026b042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / cjk_data_profiling-0.1.0-py3-none-any.whl
| Download URL | cjk_data_profiling-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6dd1c0ef6f160620279a72a6d21ab42b86ca67413418f15ff308b02672c0872
|
|
BLAKE2b-256 checksum How to use checksums |
0a10a0591134246f17a2980efa0aef0be79322046791ea4049bce28d79d13814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.30 {"installer":{"name":"uv","version":"0.11.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|