code: def remove_na_arraylike(arr):
      
      if is_extension_array_dtype(arr):
          return arr[notna(arr)]
      else:
          return arr[notna(lib.values_from_object(arr))]
docs: Return array-like containing only true/non-NaN values, possibly empty.