Python Numpy diag() - Extract or Create Diagonal | Vultr Docs