SciPy

scipy.spatial.transform.Rotation.as_dcm

Rotation.as_dcm(*args, **kwds)

as_dcm is deprecated! as_dcm is renamed to as_matrix in scipy 1.4.0 and will be removed in scipy 1.6.0