Registry / data / krippendorff

krippendorff

JSON →
library0.8.2pypypi✓ verified 85d ago

Fast computation of Krippendorff's alpha inter-rater reliability measure. Version 0.8.2 supports Python 3.10+. Released irregularly, with recent updates for NumPy v2 compatibility and Python version bumps.

pip install krippendorff
INSTALL
IMPORT
SIG · KRIPPENDORFF
K
krippendorff
datapythonv0.8.2
Install
3.5s avg
Import
256ms
Disk
89MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.8.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.252s · 89.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.5s · import 0.260s · 86MB
89MB installed
● package 89MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

alpha
from krippendorff import alpha
from krippendorff.alpha import alpha
alpha is a top-level function, not a submodule.

Compute Krippendorff's alpha for nominal data with missing values.

import numpy as np from krippendorff import alpha # Reliability data: 3 coders, 4 units, with a missing value (np.nan) reliability_data = np.array([ [1, 2, 3, np.nan], [1, 2, 3, 4], [2, 2, 3, 4] ]) result = alpha(reliability_data, level_of_measurement='nominal') print(f"Krippendorff's alpha: {result}")
Debug
Known issues
breakingPython 3.9 support dropped in v0.8.2; requires Python >=3.10.
fix
Upgrade Python to 3.10 or later.
affects: >=0.8.2
breakingNumPy v1 compatibility removed in v0.8.1; requires NumPy v2 or later.
fix
Upgrade NumPy to >=2.0.
affects: >=0.8.1
gotchaIf all units have fewer than 2 coders assigned, alpha raises a ValueError. Ensure your reliability data matrix has at least two coders per unit.
fix
Check that each column (unit) has at least two non-NaN entries.
affects: >=0.6.0
gotchaString dtype for reliability_data might cause unexpected behavior with missing values (NaNs) in older versions (<0.5.1). Fixed in 0.5.1.
fix
Upgrade to 0.5.1+ or use numeric dtypes.
affects: <0.5.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'krippendorff'
Package not installed or installed under a different name (e.g., 'fast-krippendorff').
fix
Run: pip install krippendorff
ValueError: A single coder was provided (or all units have less than 2 coders).
Reliability data matrix has only one non-NaN entry per unit, or only one coder overall.
fix
Provide data from at least two coders; ensure each unit has annotations from at least two coders.
TypeError: 'numpy.float64' object is not iterable
Calling alpha on a 1D array instead of 2D (coders x units).
fix
Ensure the input is a 2D numpy array with shape (n_coders, n_units).
Upgrade
Version history
0.8.2latest on PyPI · released Nov 3, 2025
Audit
Dependencies
numpyrequiredCore dependency for array operations and distance functions.
Agent activity
3 hits · last 30 days
node
2
Meta
1
Resources
krippendorff — pip install krippendorff · libregistry