class_docstr: A one-dimensional frame.
  
  Frames with only a single column share certain logic that is encoded in
  this class.
docstr: Convert to a PyArrow Array.
  
  Returns
  -------
  PyArrow Array
  
  Examples
  --------
  >>> import cudf
  >>> sr = cudf.Series(["a", "b", None])
  >>> sr.to_arrow()
  <pyarrow.lib.StringArray object at 0x7f796b0e7600>
  [
    "a",
    "b",
    null
  ]
  >>> ind = cudf.Index(["a", "b", None])
  >>> ind.to_arrow()
  <pyarrow.lib.StringArray object at 0x7f796b0e7750>
  [
    "a",
    "b",
    null
  ]
docstr_tok: ["Convert","to","a","PyArrow","Array",".","Returns","--","--","--","-","PyArrow","Array","Examples","--","--","--","--",">",">",">","import","cudf",">",">",">","sr","=","cudf.Series","(","[","``","a","''",",","``","b","''",",","None","]",")",">",">",">","sr.to_arrow","(",")","<","pyarrow.lib.StringArray","object","at","0x7f796b0e7600",">","[","``","a","''",",","``","b","''",",","null","]",">",">",">","ind","=","cudf.Index","(","[","``","a","''",",","``","b","''",",","None","]",")",">",">",">","ind.to_arrow","(",")","<","pyarrow.lib.StringArray","object","at","0x7f796b0e7750",">","[","``","a","''",",","``","b","''",",","null","]"]
code: def to_arrow(self):
      """
      Convert to a PyArrow Array.
  
      Returns
      -------
      PyArrow Array
  
      Examples
      --------
      >>> import cudf
      >>> sr = cudf.Series(["a", "b", None])
      >>> sr.to_arrow()
      <pyarrow.lib.StringArray object at 0x7f796b0e7600>
      [
        "a",
        "b",
        null
      ]
      >>> ind = cudf.Index(["a", "b", None])
      >>> ind.to_arrow()
      <pyarrow.lib.StringArray object at 0x7f796b0e7750>
      [
        "a",
        "b",
        null
      ]
      """
      return self._column.to_arrow()
  
imports: from __future__ import annotations
  import warnings
  from typing import Any, Dict, Optional, Tuple, Union
  import cupy
  import numpy
  import cudf
  from cudf._typing import Dtype, NotImplementedType, ScalarLike
  from cudf.api.extensions import no_default
  from cudf.api.types import _is_scalar_or_zero_d_array, is_bool_dtype, is_integer, is_integer_dtype
  from cudf.core.column import ColumnBase, as_column
  from cudf.core.frame import Frame
  from cudf.utils.nvtx_annotation import _cudf_nvtx_annotate
  from cudf.utils.utils import NotIterable
label_desc: Use image node_id 16 for calling the SingleColumnFrame obj's underlying member method code with example usage: obj.to_arrow() and returns: self