Skip to main content

py4project

授業用分析・可視化ユーティリティです。pandas DataFrame から回帰分析・散布図・横バープロット・ボックスプロットを簡単に作成できます。

インストール

pip install py4project

提供している関数

  • regression(x, y, data) — 単回帰分析(R²、95%信頼区間、回帰式を表示)
  • regression_plot(x, y, data, ...) — 散布図+回帰直線
  • scatter_plot(x, y, data, ...) — 散布図+トレンド線(対数軸オプションあり)
  • bar_plot(x, data, ...) — 横バープロット(複数系列・シフトシェア分解の配色に対応)
  • box_plot(x, data, ...) — ボックスプロット(外れ値の自動ラベル表示、対数化オプションあり)

使用例

import pandas as pd
from py4project import regression, bar_plot

df = pd.DataFrame({
    "産業": ["製造業", "卸売業", "小売業"],
    "全国成長効果": [120, 80, 60],
    "産業構成効果": [-20, 10, 5],
    "地域固有効果": [30, -5, 15],
})

bar_plot(["全国成長効果", "産業構成効果", "地域固有効果"], df, title="シフトシェア分解")

依存パッケージ

numpy, pandas, scipy, matplotlib, japanize_matplotlib_jlite(日本語フォントを自動設定します)

ライセンス

MIT License

Metadata

Release files for py4project 0.2.0

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

Source distribution (sdist)

Source distribution for py4project 0.2.0
File Size Uploaded
py4project-0.2.0.tar.gz 344.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py4project 0.2.0
File Interpreter ABI Platform
py4project-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 357.0 kB

Release files / py4project-0.2.0.tar.gz

Download URL py4project-0.2.0.tar.gz
Size 344.3 kB
Tags Source
SHA-256 checksum
How to use checksums
00ff7d8ab33435f347614f423c55ac4a9992d947b1b9141de8283dad3edd40b7
BLAKE2b-256 checksum
How to use checksums
1e082d4590bdbcb3abb66cb991f4209f4fc5d540cea05689d0cb67cdff9cee1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release files / py4project-0.2.0-py3-none-any.whl

Download URL py4project-0.2.0-py3-none-any.whl
Size 12.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69c6f38dc69d21c46bddf6d0aaebfe42fc0008bfec595be6e0c3f8a97b4f238d
BLAKE2b-256 checksum
How to use checksums
88ce2103d518b6d2e68b078162c9c15412384241cfe925a44afe123c3a743e29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 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