title: Numpy: using .max to change a number in a 2D array
body: <p>I'm trying to create a simple connect-4 game using NumPy's 2D arrays, The idea is to when a player chooses a column, It will replace the largest number in that column with a piece</p>
  <pre><code>import numpy as np
  
  R_count = 6
  C_count = 7
  
  M1 = ([[0,0,0,0,0,0,0],[1,1,1,1,1,1,1],[2,2,2,2,2,2,2],[3,3,3,3,3,3,3],[4,4,4,4,4,4,4],[5,5,5,5,5,5,5]])
  
  def M2():
      mymatrix = np.array(M1)
      return mymatrix
  Board = M2()
  
  def drop_piece(Board,row,col,piece):
      np.max(Board[row][col]) = piece
  </code></pre>
  <p>But when I use the np.max function to replace the number with a piece, the function will give an error:</p>
  <pre><code>    np.max(Board[row][col]) = piece        
      ^
  SyntaxError: cannot assign to function call
  </code></pre>
  <p>Are there any solutions for this or I cannot change the largest number in a column using a function?</p>