Skip to main content

Compute the X2Y metric for detecting relationships between variables

Project description

x2y-metric

Compute the X2Y metric for detecting relationships between variables.

Installation

pip install x2y-metric


## Usage
```python
from x2y_metric import x2y, dx2y
import pandas as pd

# Single pair
x = [1, 2, 3]
y = [2, 4, 6]
print(x2y(x, y))  # ~100%

# DataFrame
df = pd.DataFrame({"x": [1, 2, 3], "y": [2, 4, 6]})
print(dx2y(df))

Build:

uv build

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

x2y_metric-0.1.1.tar.gz (51.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x2y_metric-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file x2y_metric-0.1.1.tar.gz.

File metadata

  • Download URL: x2y_metric-0.1.1.tar.gz
  • Upload date:
  • Size: 51.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.3

File hashes

Hashes for x2y_metric-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c1cc97a15931ca2b100a7d9a825ae4a8da4a91a5659d4025a1c07a1f9389308
MD5 ba4d32442b1122122e8b0d17a6eda0aa
BLAKE2b-256 4032fe20d99cd8167cf6887a399a643b05e4ec44aba6096122df578912c8339a

See more details on using hashes here.

File details

Details for the file x2y_metric-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for x2y_metric-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64f11db805378e2faa27ee134b8078076f1fe9ba81d96f1c7e4daa2e34c01d7b
MD5 2b49c9a2b1c726fc4ac24398090bd651
BLAKE2b-256 ccecadce694fa9fa992a202dfb8a3a83f795e1d88a599097d18c5cbd676bd910

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page