docstr: Gives the number of active grid cells before row element j, in column i.
  
  Parameters
  ----------
  elem
      (i,j) index, where i indexes columns and j rows
  
  Returns
  -------
  int
      The number of active grid cells before row element j, in column i,
      If (i,j) is not an active grid cell returns -1
docstr_tok: ["Gives","the","number","of","active","grid","cells","before","row","element","j",",","in","column","i.","Parameters","--","--","--","--","--","elem","(","i",",","j",")","index",",","where","i","indexes","columns","and","j","rows","Returns","--","--","--","-","int","The","number","of","active","grid","cells","before","row","element","j",",","in","column","i",",","If","(","i",",","j",")","is","not","an","active","grid","cell","returns","-1"]
code: def column_index(self, elem: Tuple[int, int]) -> int:
      """Gives the number of active grid cells before row element j, in column i.
  
      Parameters
      ----------
      elem
          (i,j) index, where i indexes columns and j rows
  
      Returns
      -------
      int
          The number of active grid cells before row element j, in column i,
          If (i,j) is not an active grid cell returns -1
      """
  
imports: import array
  from abc import ABC, abstractmethod
  from math import atan, tan
  from typing import Tuple
  import numpy
  from darts.logging import raise_if, raise_if_not
label_desc: Use image node_id 3 for calling the Window obj's underlying member method code with example usage: obj.column_index(elem) without return types