Skip to main content

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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cjk-data-profiling 0.1.1
File Size Uploaded
cjk_data_profiling-0.1.1.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cjk-data-profiling 0.1.1
File Interpreter ABI Platform
cjk_data_profiling-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / cjk_data_profiling-0.1.1.tar.gz

Download URL cjk_data_profiling-0.1.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0dbdc363a2a3374bc8f71586b12582023ead0e207d8ae61d36d1b978c6b086a9
BLAKE2b-256 checksum
How to use checksums
6fd32321f4321b562fcf724f5e273400aa837fee03f9ab391571573c5ba944d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / cjk_data_profiling-0.1.1-py3-none-any.whl

Download URL cjk_data_profiling-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ee91123c88b36ee6df71204fea5842928d14c243f1f7d80e7bb90324a96ce78
BLAKE2b-256 checksum
How to use checksums
c2a1b0448f11d0e6468c66413833f0eba1cac0f603f171d46c49f8f9fc9e230b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.2.0

2 release files

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page