{"id":21508,"library":"krippendorff","title":"fast-krippendorff","description":"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.","status":"active","version":"0.8.2","language":"python","source_language":"en","source_url":"https://github.com/pln-fing-udelar/fast-krippendorff","tags":["inter-rater reliability","krippendorff's alpha","statistics","numpy"],"install":[{"cmd":"pip install krippendorff","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core dependency for array operations and distance functions.","package":"numpy","optional":false}],"imports":[{"note":"alpha is a top-level function, not a submodule.","wrong":"from krippendorff.alpha import alpha","symbol":"alpha","correct":"from krippendorff import alpha"}],"quickstart":{"code":"import numpy as np\nfrom krippendorff import alpha\n\n# Reliability data: 3 coders, 4 units, with a missing value (np.nan)\nreliability_data = np.array([\n    [1, 2, 3, np.nan],\n    [1, 2, 3, 4],\n    [2, 2, 3, 4]\n])\n\nresult = alpha(reliability_data, level_of_measurement='nominal')\nprint(f\"Krippendorff's alpha: {result}\")","lang":"python","description":"Compute Krippendorff's alpha for nominal data with missing values."},"warnings":[{"fix":"Upgrade Python to 3.10 or later.","message":"Python 3.9 support dropped in v0.8.2; requires Python >=3.10.","severity":"breaking","affected_versions":">=0.8.2"},{"fix":"Upgrade NumPy to >=2.0.","message":"NumPy v1 compatibility removed in v0.8.1; requires NumPy v2 or later.","severity":"breaking","affected_versions":">=0.8.1"},{"fix":"Check that each column (unit) has at least two non-NaN entries.","message":"If all units have fewer than 2 coders assigned, alpha raises a ValueError. Ensure your reliability data matrix has at least two coders per unit.","severity":"gotcha","affected_versions":">=0.6.0"},{"fix":"Upgrade to 0.5.1+ or use numeric dtypes.","message":"String dtype for reliability_data might cause unexpected behavior with missing values (NaNs) in older versions (<0.5.1). Fixed in 0.5.1.","severity":"gotcha","affected_versions":"<0.5.1"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run: pip install krippendorff","cause":"Package not installed or installed under a different name (e.g., 'fast-krippendorff').","error":"ModuleNotFoundError: No module named 'krippendorff'"},{"fix":"Provide data from at least two coders; ensure each unit has annotations from at least two coders.","cause":"Reliability data matrix has only one non-NaN entry per unit, or only one coder overall.","error":"ValueError: A single coder was provided (or all units have less than 2 coders)."},{"fix":"Ensure the input is a 2D numpy array with shape (n_coders, n_units).","cause":"Calling alpha on a 1D array instead of 2D (coders x units).","error":"TypeError: 'numpy.float64' object is not iterable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}