diff options
author | Elisey Zanko <elisey.zanko@gmail.com> | 2015-04-20 10:44:09 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-04-20 10:44:09 -0700 |
commit | 77176619a97d07811ab20e1dde4677359d85eb33 (patch) | |
tree | 3d362532bd4a21d2c888425791418e6001485d80 /python/pyspark/sql/dataframe.py | |
parent | 968ad972175390bb0a96918fd3c7b318d70fa466 (diff) | |
download | spark-77176619a97d07811ab20e1dde4677359d85eb33.tar.gz spark-77176619a97d07811ab20e1dde4677359d85eb33.tar.bz2 spark-77176619a97d07811ab20e1dde4677359d85eb33.zip |
[SPARK-6661] Python type errors should print type, not object
Author: Elisey Zanko <elisey.zanko@gmail.com>
Closes #5361 from 31z4/spark-6661 and squashes the following commits:
73c5d79 [Elisey Zanko] Python type errors should print type, not object
Diffstat (limited to 'python/pyspark/sql/dataframe.py')
-rw-r--r-- | python/pyspark/sql/dataframe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py index d70c5b0a69..75c181c0c7 100644 --- a/python/pyspark/sql/dataframe.py +++ b/python/pyspark/sql/dataframe.py @@ -608,7 +608,7 @@ class DataFrame(object): jc = self._jdf.apply(self.columns[item]) return Column(jc) else: - raise TypeError("unexpected type: %s" % type(item)) + raise TypeError("unexpected item type: %s" % type(item)) def __getattr__(self, name): """Returns the :class:`Column` denoted by ``name``. |