NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #4741 most downloaded on PyPI
Phi_K correlation analyzer library
Last release 1 years ago
17 Jul 2025
Release timing varies
gaps range from 8 days to 1.5 years
Some releases are documented
notes for 6 of 23 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
23 releases · first in 2018
FIX: scipy 1.16.0 no longer supports mvn, code now migrated to qmvn. https://github.com/KaveIO/PhiK/issues/101 https://github.com/KaveIO/PhiK/pull/102
FIX: scipy 1.16.0 no longer supports mvn, code now migrated to qmvn. https://github.com/KaveIO/PhiK/issues/101 https://github.com/KaveIO/PhiK/pull/102
Drop support for Python 3.8, has reached end of life.
FIX: pandas deprecation warning https://github.com/KaveIO/PhiK/pull/74
Add support for Python 3.12.
ENH: added plotting kwargs to correlation_report function. https://github.com/KaveIO/PhiK/issues/58
FIX: fix of bin edge values they are rounded with 1e-14 https://github.com/KaveIO/PhiK/issues/60
FIX: numpy random multinomial requires integer number of samples (for nixOS) https://github.com/KaveIO/PhiK/issues/73
FIX: pandas deprecation warning https://github.com/KaveIO/PhiK/pull/74
Drop support for Python 3.7, has reached end of life.
One column per quarter.
- Add support for Python 3.11
Add support for Python 3.11
Fix missing setup.py and pyproject.toml in source distribution
Fix missing setup.py and pyproject.toml in source distribution
Support wheels ARM MacOS (Apple silicone)
Two fixes to make calculation of global phik robust: global phik capped in range [0, 1], and check for successful correlation matrix inversion.
Two fixes to make calculation of global phik robust: global phik capped in range [0, 1], and check for successful correlation matrix inversion.
Migration to to scikit-build 0.13.1.
Support wheels for Python 3.10.
Phi_K contains an optional C++ extension to compute the significance matrix using the hypergeometric method (also called thePatefield method).
Phi_K contains an optional C++ extension to compute the significance matrix using the hypergeometric method (also called the`Patefield` method).
Note that the PyPi distributed wheels contain a pre-build extension for Linux, MacOS and Windows.
A manual (pip) setup will attempt to build and install the extension, if it fails it will install without the extension. If so, using the hypergeometric method without the extension will trigger a NotImplementedError.
Compiler requirements through Pybind11:
Clang/LLVM 3.3 or newer (for Apple Xcode's clang, this is 5.0.0 or newer)
GCC 4.8 or newer
Microsoft Visual Studio 2015 Update 3 or newer
Intel classic C++ compiler 18 or newer (ICC 20.2 tested in CI)
Cygwin/GCC (previously tested on 2.5.1)
NVCC (CUDA 11.0 tested in CI)
NVIDIA PGI (20.9 tested in CI)
You can now manually set the number of parallel jobs in the evaluation of Phi_K or its statistical significance (when using MC simulations). For example, to use 4 parallel jobs do:
df.phik_matrix(njobs = 4)
df.significance_matrix(njobs = 4)
The default value is -1, in which case all available cores are used. When using njobs=1 no parallel processing is applied.
Phi_K can now be calculated with an independent expectation histogram:
from phik.phik import phik_from_hist2d
cols = ["mileage", "car_size"]
interval_cols = ["mileage"]
observed = df1[["feature1", "feature2"]].hist2d()
expected = df2[["feature1", "feature2"]].hist2d()
phik_value = phik_from_hist2d(observed=observed, expected=expected)
The expected histogram is taken to be (relatively) large in number of counts compared with the observed histogram.
Or can compare two (pre-binned) datasets against each other directly. Again the expected dataset is assumed to be relatively large:
from phik.phik import phik_observed_vs_expected_from_rebinned_df
phik_matrix = phik_observed_vs_expected_from_rebinned_df(df1_binned, df2_binned)
Added links in the readme to the basic and advanced Phi_K tutorials on google colab.
Migrated the spark example Phi_K notebook from popmon to directly using histogrammar for histogram creation.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →