How to fix numpy.linalg.LinAlgError: Singular matrix in Python | DevErrors