class_docstr: A pandas ExtensionArray for NumPy data.
  
  .. versionadded :: 0.24.0
  
  This is mostly for internal compatibility, and is not especially
  useful on its own.
  
  Parameters
  ----------
  values : ndarray
      The NumPy ndarray to wrap. Must be 1-dimensional.
  copy : bool, default False
      Whether to copy `values`.
  
  Notes
  -----
  Operations like ``+`` and applying ufuncs requires NumPy>=1.13.
class_docstr_tok: ["A","pandas","ExtensionArray","for","NumPy","data",".","..","versionadded",":",":","0.24.0","This","is","mostly","for","internal","compatibility",",","and","is","not","especially","useful","on","its","own",".","Parameters","--","--","--","--","--","values",":","ndarray","The","NumPy","ndarray","to","wrap",".","Must","be","1-dimensional",".","copy",":","bool",",","default","False","Whether","to","copy","`","values","`",".","Notes","--","--","-","Operations","like","``","+","``","and","applying","ufuncs","requires","NumPy",">","=1.13","."]
code: def __setitem__(self, key, value):
      from pandas.core.internals.arrays import extract_array
  
      value = extract_array(value, extract_numpy=True)
  
      if not lib.is_scalar(key) and is_list_like(key):
          key = np.asarray(key)
  
      if not lib.is_scalar(value):
          value = np.asarray(value)
  
      values = self._ndarray
      t = np.result_type(value, values)
      if t != self._ndarray.dtype:
          values = values.astype(t, casting="safe")
          values[key] = value
          self._dtype = PandasDtype(t)
          self._ndarray = values
      else:
          self._ndarray[key] = value
  
imports: import numbers
  import numpy
  from pandas._libs import lib
  from pandas.compat.numpy import function
  from pandas.util._validators import validate_fillna_kwargs
  from pandas.core.dtypes.dtypes import ExtensionDtype
  from pandas.core.dtypes.generic import ABCIndexClass, ABCSeries
  from pandas.core.dtypes.inference import is_array_like, is_list_like
  from pandas import compat
  from pandas.core import nanops
  from pandas.core.missing import backfill_1d, pad_1d
  from .base import ExtensionArray, ExtensionOpsMixin
label_desc: Use image node_id 9 for calling the PandasArray obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types