Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update dataframe.py
  • Loading branch information
Davies Liu committed Aug 19, 2015
commit 68ff0a9391de22dff5bc54eb5d07a3b4b8b7c5c7
1 change: 0 additions & 1 deletion python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,6 @@ def withColumnRenamed(self, existing, new):
>>> df.withColumnRenamed('age', 'age2').collect()
[Row(age2=2, name=u'Alice'), Row(age2=5, name=u'Bob')]
"""
assert existing in self.columns, "%s is not an existing column" % existing
return DataFrame(self._jdf.withColumnRenamed(existing, new), self.sql_ctx)

@since(1.4)
Expand Down