Skip to main content

quantile_scatter

下の方に日本語の説明があります

Overview

  • Visualization tool that makes it easier to get scatter plots right.
  • The number of uniform data is divided into intervals on the x-axis, and the quantile points for each interval are displayed.

Usage

import quantile_scatter

# dummy data
x_ls = [(4 * random.random() - 2) ** 3
	for _ in range(1000)]
y_ls = [math.sin(x) + random.random() * 0.5
	for x in x_ls]

# plot [quantile_scatter]
quantile_scatter.plot(
	x = x_ls,	# x-list
	y = y_ls,	# y-list
	min_bin_ratio = 1/20,	# Ratio of the smallest group (the number of records in the smallest group as a percentage of the total)
	ile_ls = [0.25, 0.5, 0.75]
)

Advanced Usage

  • Option argument of quantile_scatter.plot() function:
mean = True   # Also draw the "mean"
show = False  # Do not show the graph and only return the data to be displayed (useful for saving the graph or drawing with something other than matplotlib)
missing_values = [None]	# The specification that x contains a missing value of "None". Internally, the value is included in the statistics as "missing".

概要

  • 散布図を正しく把握しやすくする可視化ツール
  • 均一データ数の横軸区間に分け、各区間の分位点を表示する
  • 説明は執筆中です

使用例

import quantile_scatter

# ダミーデータ
x_ls = [(4 * random.random() - 2) ** 3
	for _ in range(1000)]
y_ls = [math.sin(x) + random.random() * 0.5
	for x in x_ls]

# 分位点散布図の描画 [quantile_scatter]
quantile_scatter.plot(
	x = x_ls,	# 横軸数値リスト
	y = y_ls,	# 縦軸数値リスト
	min_bin_ratio = 1/20,	# 最小グループ割合 (最も小さいグループのレコード数が全体に占める割合)
	ile_ls = [0.25, 0.5, 0.75]	# どこの分位点を出すか
)

発展的な利用方法

quantile_scatter.plot()関数のoption引数

mean = True	# 「平均」も描画する
show = False	# グラフ表示せず、表示対象データのみを返却 (グラフを保存したい場合や、matplotlib以外で描画したい場合などに有効)
missing_values = [None]	# xにNoneという欠損値が含まれるという指定。内部的には"missing"という値として集計に含められる。

Metadata

Release files for quantile-scatter 0.3.4

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

Source distribution (sdist)

Source distribution for quantile-scatter 0.3.4
File Size Uploaded Provenance
quantile-scatter-0.3.4.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for quantile-scatter 0.3.4
File Interpreter ABI Platform
quantile_scatter-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / quantile-scatter-0.3.4.tar.gz

Download URL quantile-scatter-0.3.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b15ab32e09985f37581feb3c6a62f9900008cd9732197d878de622cdb3879be7
BLAKE2b-256 checksum
How to use checksums
548d6e48b1cca0b8caafa3923b6c2c1995a66e565622253bc8ea08882ab36486
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.6.8

Release files / quantile_scatter-0.3.4-py3-none-any.whl

Download URL quantile_scatter-0.3.4-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04d4b1a4fbb18406db725946dab27edc256ab1c57e82c685416bfcec76544fe4
BLAKE2b-256 checksum
How to use checksums
f73958e542eff490d8909f9133e66b1a01240ffea57eb42d3e4167ef6d42cf83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.27.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.6.8

Security for quantile-scatter 0.3.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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