diff --git a/python/pyspark/pandas/sql_formatter.py b/python/pyspark/pandas/sql_formatter.py index b6d48077675bd..fe500c0bf2079 100644 --- a/python/pyspark/pandas/sql_formatter.py +++ b/python/pyspark/pandas/sql_formatter.py @@ -109,14 +109,13 @@ def sql( args : dict or list A dictionary of parameter names to Python objects or a list of Python objects that can be converted to SQL literal expressions. See - `Supported Data Types`_ for supported value types in Python. + `Supported Data Types `_ + for supported value types in Python. For example, dictionary keys: "rank", "name", "birthdate"; dictionary values: 1, "Steven", datetime.date(2023, 4, 2). A value can be also a `Column` of a literal or collection constructor functions such as `map()`, `array()`, `struct()`, in that case it is taken as is. - .. _Supported Data Types: https://spark.apache.org/docs/latest/sql-ref-datatypes.html - .. versionadded:: 3.4.0 .. versionchanged:: 3.5.0