Skip to content

Commit 407f672

Browse files
gatorsmileHyukjinKwon
authored andcommitted
[SPARK-20090][FOLLOW-UP] Revert the deprecation of names in PySpark
## What changes were proposed in this pull request? Deprecating the field `name` in PySpark is not expected. This PR is to revert the change. ## How was this patch tested? N/A Author: gatorsmile <[email protected]> Closes #20595 from gatorsmile/removeDeprecate.
1 parent f17b936 commit 407f672

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

python/pyspark/sql/types.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,6 @@ class StructType(DataType):
455455
Iterating a :class:`StructType` will iterate its :class:`StructField`\\s.
456456
A contained :class:`StructField` can be accessed by name or position.
457457
458-
.. note:: `names` attribute is deprecated in 2.3. Use `fieldNames` method instead
459-
to get a list of field names.
460-
461458
>>> struct1 = StructType([StructField("f1", StringType(), True)])
462459
>>> struct1["f1"]
463460
StructField(f1,StringType,true)

0 commit comments

Comments
 (0)