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 1fd6ed9 commit bcc2220Copy full SHA for bcc2220
python/pyspark/sql/dataframe.py
@@ -633,7 +633,8 @@ def __getattr__(self, name):
633
[Row(age=2), Row(age=5)]
634
"""
635
if name not in self.columns:
636
- raise AttributeError("No such column: %s" % name)
+ raise AttributeError(
637
+ "'%s' object has no attribute '%s'" % (self.__class__.__name__, name))
638
jc = self._jdf.apply(name)
639
return Column(jc)
640
0 commit comments