class_docstr: ExtensionArray that is backed by a single NumPy ndarray.
class_docstr_tok: ["ExtensionArray","that","is","backed","by","a","single","NumPy","ndarray","."]
docstr: Return a Series containing counts of unique values.
  
  Parameters
  ----------
  dropna : bool, default True
      Don't include counts of NA values.
  
  Returns
  -------
  Series
docstr_tok: ["Return","a","Series","containing","counts","of","unique","values",".","Parameters","--","--","--","--","--","dropna",":","bool",",","default","True","Do","n't","include","counts","of","NA","values",".","Returns","--","--","--","-","Series"]
code: def value_counts(self, dropna: bool = True) -> Series:
      """
      Return a Series containing counts of unique values.
  
      Parameters
      ----------
      dropna : bool, default True
          Don't include counts of NA values.
  
      Returns
      -------
      Series
      """
      if self.ndim != 1:
          raise NotImplementedError
  
      from pandas import (
          Index,
          Series,
      )
  
      if dropna:
          # error: Unsupported operand type for ~ ("ExtensionArray")
          values = self[~self.isna()]._ndarray  # type: ignore[operator]
      else:
          values = self._ndarray
  
      result = value_counts(values, sort=False, dropna=dropna)
  
      index_arr = self._from_backing_data(
          np.asarray(result.index._data)
      )
      index = Index(index_arr, name=result.index.name)
      return Series(
          result._values, index=index, name=result.name, copy=False
      )
  
imports: from __future__ import annotations
  from functools import wraps
  from typing import TYPE_CHECKING, Any, Literal, cast, overload
  import numpy
  from pandas._libs import lib
  from pandas._libs.arrays import NDArrayBacked
  from pandas._libs.tslibs import is_supported_dtype
  from pandas._typing import ArrayLike, AxisInt, Dtype, F, FillnaOptions, PositionalIndexer2D, PositionalIndexerTuple, ScalarIndexer, Self, SequenceIndexer, Shape, TakeIndexer, npt
  from pandas.errors import AbstractMethodError
  from pandas.util._decorators import doc
  from pandas.util._validators import validate_bool_kwarg, validate_fillna_kwargs, validate_insert_loc
  from pandas.core.dtypes.common import pandas_dtype
  from pandas.core.dtypes.dtypes import DatetimeTZDtype, ExtensionDtype, PeriodDtype
  from pandas.core.dtypes.missing import array_equivalent
  from pandas.core import missing
  from pandas.core.algorithms import take, unique, value_counts_internal
  from pandas.core.array_algos.quantile import quantile_with_mask
  from pandas.core.array_algos.transforms import shift
  from pandas.core.arrays.base import ExtensionArray
  from pandas.core.construction import extract_array
  from pandas.core.indexers import check_array_indexer
  from pandas.core.sorting import nargminmax
label_desc: Use image node_id 28 for calling the NDArrayBackedExtensionArray obj's underlying member method code with example usage: obj.value_counts(dropna) and returns: Series