class_docstr: This class provides common dispatching and validation logic for indexing.
class_docstr_tok: ["This","class","provides","common","dispatching","and","validation","logic","for","indexing","."]
docstr: We do not currently support 1D sparse arrays.
  
  This function is called each time that a 1D array would
  result, raising an error instead.
  
  Once 1D sparse arrays are implemented, it should be removed.
docstr_tok: ["We","do","not","currently","support","1D","sparse","arrays",".","This","function","is","called","each","time","that","a","1D","array","would","result",",","raising","an","error","instead",".","Once","1D","sparse","arrays","are","implemented",",","it","should","be","removed","."]
code: def _raise_on_1d_array_slice(self):
      """We do not currently support 1D sparse arrays.
  
      This function is called each time that a 1D array would
      result, raising an error instead.
  
      Once 1D sparse arrays are implemented, it should be removed.
      """
      from scipy.sparse import sparray
  
      if isinstance(self, sparray):
          raise NotImplementedError(
              "We have not yet implemented 1D sparse slices; "
              "please index using explicit indices, e.g. `x[:, [0]]`"
          )
  
imports: import numpy
  from ._sputils import isintlike
label_desc: Use image node_id 1 for calling the IndexMixin obj's underlying member method code with example usage: obj._raise_on_1d_array_slice() without return types