class_docstr: Select an index from an array axis.
      
class_docstr_tok: ["Select","an","index","from","an","array","axis","."]
code: def processData(self, data):
      s = self.stateGroup.state()
      ax = s["axis"]
      ind = s["index"]
      if ax == 0:
          # allow support for non-ndarray sequence types
          return data[ind]
      else:
          return data.take(ind, axis=ax)
  
imports: import numpy
  from ...graphicsItems.LinearRegionItem import LinearRegionItem
  from ...Qt import QtCore, QtWidgets
  from ...widgets.TreeWidget import TreeWidget
  from ..Node import Node
  from .None import functions
  from .common import CtrlNode
label_desc: Use image node_id 1 for calling the Index obj's underlying member method code with example usage: obj.processData(data) and returns: data, data