bundles / scipy latest / scipy / constants / _codata / unit
function
scipy.constants._codata:unit
source: build-install/usr/lib/python3.14/site-packages/scipy/constants/_codata.py:2155
Signature
def unit(key: str) → strSummary
Unit in physical_constants indexed by key.
Parameters
key: strKey in dictionary
physical_constants
Returns
unit: strUnit in
physical_constantscorresponding tokey
Notes
Array API Standard Support
unit is not in-scope for support of Python Array API Standard compatible backends other than NumPy.
See dev-arrayapi for more information.
Examples
from scipy import constants constants.unit('proton mass')✓
'kg'
Aliases
scipy.constants.unit