class_docstr: A column in a DataFrame.
  
  .. versionadded:: 1.3.0
  
  .. versionchanged:: 3.4.0
      Supports Spark Connect.
  
  Examples
  --------
  Column instances can be created by
  
  >>> df = spark.createDataFrame(
  ...      [(2, "Alice"), (5, "Bob")], ["age", "name"])
  
  Select a column out of a DataFrame
  >>> df.name
  Column<'name'>
  >>> df["name"]
  Column<'name'>
  
  Create from an expression
  
  >>> df.age + 1
  Column<...>
  >>> 1 / df.age
  Column<...>
class_docstr_tok: ["A","column","in","a","DataFrame",".","..","versionadded",":",":","1.3.0","..","versionchanged",":",":","3.4.0","Supports","Spark","Connect",".","Examples","--","--","--","--","Column","instances","can","be","created","by",">",">",">","df","=","spark.createDataFrame","(","...","[","(","2",",","``","Alice","''",")",",","(","5",",","``","Bob","''",")","]",",","[","``","age","''",",","``","name","''","]",")","Select","a","column","out","of","a","DataFrame",">",">",">","df.name","Column","<","'name","'",">",">",">",">","df","[","``","name","''","]","Column","<","'name","'",">","Create","from","an","expression",">",">",">","df.age","+","1","Column","<","...",">",">",">",">","1","\/","df.age","Column","<","...",">"]
docstr: An expression that gets an item at position ``ordinal`` out of a list,
  or gets an item by key out of a dict.
  
  .. versionadded:: 1.3.0
  
  .. versionchanged:: 3.4.0
      Supports Spark Connect.
  
  Parameters
  ----------
  key
      a literal value, or a :class:`Column` expression.
      The result will only be true at a location if the item matches in the column.
  
       .. deprecated:: 3.0.0
           :class:`Column` as a parameter is deprecated.
  
  Returns
  -------
  :class:`Column`
      Column representing the item(s) got at position out of a list or by key out of a dict.
  
  Examples
  --------
  >>> df = spark.createDataFrame([([1, 2], {"key": "value"})], ["l", "d"])
  >>> df.select(df.l.getItem(0), df.d.getItem("key")).show()
  +----+------+
  |l[0]|d[key]|
  +----+------+
  |   1| value|
  +----+------+
docstr_tok: ["An","expression","that","gets","an","item","at","position","``","ordinal","``","out","of","a","list",",","or","gets","an","item","by","key","out","of","a","dict",".","..","versionadded",":",":","1.3.0","..","versionchanged",":",":","3.4.0","Supports","Spark","Connect",".","Parameters","--","--","--","--","--","key","a","literal","value",",","or","a",":","class",":","`","Column","`","expression",".","The","result","will","only","be","true","at","a","location","if","the","item","matches","in","the","column",".","..","deprecated",":",":","3.0.0",":","class",":","`","Column","`","as","a","parameter","is","deprecated",".","Returns","--","--","--","-",":","class",":","`","Column","`","Column","representing","the","item","(","s",")","got","at","position","out","of","a","list","or","by","key","out","of","a","dict",".","Examples","--","--","--","--",">",">",">","df","=","spark.createDataFrame","(","[","(","[","1",",","2","]",",","{","``","key","''",":","``","value","''","}",")","]",",","[","``","l","''",",","``","d","''","]",")",">",">",">","df.select","(","df.l.getItem","(","0",")",",","df.d.getItem","(","``","key","''",")",")",".show","(",")","+","--","--","+","--","--","--","+","|l","[","0","]","|d","[","key","]","|","+","--","--","+","--","--","--","+","|","1|","value|","+","--","--","+","--","--","--","+"]
code: def getItem(self, key: Any) -> "Column":
      """
      An expression that gets an item at position ``ordinal`` out of a list,
      or gets an item by key out of a dict.
  
      .. versionadded:: 1.3.0
  
      .. versionchanged:: 3.4.0
          Supports Spark Connect.
  
      Parameters
      ----------
      key
          a literal value, or a :class:`Column` expression.
          The result will only be true at a location if the item matches in the column.
  
           .. deprecated:: 3.0.0
               :class:`Column` as a parameter is deprecated.
  
      Returns
      -------
      :class:`Column`
          Column representing the item(s) got at position out of a list or by key out of a dict.
  
      Examples
      --------
      >>> df = spark.createDataFrame([([1, 2], {"key": "value"})], ["l", "d"])
      >>> df.select(df.l.getItem(0), df.d.getItem("key")).show()
      +----+------+
      |l[0]|d[key]|
      +----+------+
      |   1| value|
      +----+------+
      """
      if isinstance(key, Column):
          warnings.warn(
              "A column as 'key' in getItem is deprecated as of Spark 3.0, and will not "
              "be supported in the future release. Use `column[key]` or `column.key` syntax "
              "instead.",
              FutureWarning,
          )
      return self[key]
  
imports: import sys
  import json
  import warnings
  from typing import cast, overload, Any, Callable, Iterable, List, Optional, Tuple, TYPE_CHECKING, Union
  from py4j.java_gateway import JavaObject, JVMView
  from pyspark import copy_func
  from pyspark.context import SparkContext
  from pyspark.errors import PySparkAttributeError, PySparkTypeError, PySparkValueError
  from pyspark.sql.types import DataType
  from pyspark.sql.utils import get_active_spark_context
label_desc: Use image node_id 5 for calling the Column obj's underlying member method code with example usage: obj.getItem(key) and returns: self