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
  ----------
  k
      a literal value, or a slice object without step.
  
  Returns
  -------
  :class:`Column`
      Column representing the item got by key out of a dict, or substrings sliced by
      the given slice object.
  
  Examples
  --------
  >>> df = spark.createDataFrame([('abcedfg', {"key": "value"})], ["l", "d"])
  >>> df.select(df.l[slice(1, 3)], df.d['key']).show()
  +---------------+------+
  |substr(l, 1, 3)|d[key]|
  +---------------+------+
  |            abc| 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","--","--","--","--","--","k","a","literal","value",",","or","a","slice","object","without","step",".","Returns","--","--","--","-",":","class",":","`","Column","`","Column","representing","the","item","got","by","key","out","of","a","dict",",","or","substrings","sliced","by","the","given","slice","object",".","Examples","--","--","--","--",">",">",">","df","=","spark.createDataFrame","(","[","(","'abcedfg","'",",","{","``","key","''",":","``","value","''","}",")","]",",","[","``","l","''",",","``","d","''","]",")",">",">",">","df.select","(","df.l","[","slice","(","1",",","3",")","]",",","df.d","[","'key","'","]",")",".show","(",")","+","--","--","--","--","--","--","--","-+","--","--","--","+","|substr","(","l",",","1",",","3",")","|d","[","key","]","|","+","--","--","--","--","--","--","--","-+","--","--","--","+","|","abc|","value|","+","--","--","--","--","--","--","--","-+","--","--","--","+"]
code: def __getitem__(self, k: 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
      ----------
      k
          a literal value, or a slice object without step.
  
      Returns
      -------
      :class:`Column`
          Column representing the item got by key out of a dict, or substrings sliced by
          the given slice object.
  
      Examples
      --------
      >>> df = spark.createDataFrame([('abcedfg', {"key": "value"})], ["l", "d"])
      >>> df.select(df.l[slice(1, 3)], df.d['key']).show()
      +---------------+------+
      |substr(l, 1, 3)|d[key]|
      +---------------+------+
      |            abc| value|
      +---------------+------+
      """
      if isinstance(k, slice):
          if k.step is not None:
              raise PySparkValueError(
                  error_class="SLICE_WITH_STEP",
                  message_parameters={},
              )
          return self.substr(k.start, k.stop)
      else:
          return _bin_op("apply")(self, k)
  
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 10 for calling the Column obj's underlying member method code with example usage: obj.__getitem__(k) and returns: self, _bin_op