Numpy matrix.put () method, we can put a value by passing the index and value into the given matrix.
matrix.put (index, value)
Return: Return new matrix
Example # 1:
In this example, we see that we can place a value from a given matrix using the
matrix.put () .
[[45 45] [12 3]]
Example # 2:
[[1 2 43] [4 5 6] [7 8 -9]]
Black Hat Python, 2nd Edition: Python Programming for Hackers and Pentesters PDF, 2nd Edition. Fully updated for Python 3, the second edition of this worldwide bestseller (over 100,000 copies sold)...
Managing and analyzing data have always offered the greatest benefits and the greatest challenges for organizations of all sizes and across all industries. Businesses have long struggled with finding ...
Scientific progress has increasingly become reliant on large-scale data collection and analysis methodologies. The same is true for the advanced use of computing in business, government, and other are...
Mark Lutz is the global leader in Python training, author of the oldest and best-selling Python texts, and a pioneer in the Python community since 1992.
Mark Lutz is the author of the found...