We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f0833a commit 7ea5b31Copy full SHA for 7ea5b31
python/pyspark/sql/dataframe.py
@@ -1308,17 +1308,17 @@ def getField(self, name):
1308
>>> from pyspark.sql import Row
1309
>>> df = sc.parallelize([Row(r=Row(a=1, b="b"))]).toDF()
1310
>>> df.select(df.r.getField("b")).show()
1311
- +---+
+ +----+
1312
|r[b]|
1313
1314
- | b|
1315
+ | b|
1316
>>> df.select(df.r.a).show()
1317
1318
|r[a]|
1319
1320
- | 1|
1321
+ | 1|
1322
"""
1323
return self[name]
1324
0 commit comments