NumPy | Python Methods and Functions

** **

With the ` `

method, we can put a ** Numpy matrix.put () ** ** value ** by passing the index and value into the given matrix.

Syntax:`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 () `

.

` ` |

** Output: **

[[45 45] [12 3]]

** Example # 2: **

` ` |

** Exit:**

[[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)...

22/08/2021

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 ...

10/07/2020

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...

10/07/2020

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...

11/08/2021

X
# Submit new EBook