Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/8647#discussion_r38910982
--- Diff: python/pyspark/sql/column.py ---
@@ -329,6 +329,8 @@ def cast(self, dataType):
[Row(ages=u'2'), Row(ages=u'5')]
>>> df.select(df.age.cast(StringType()).alias('ages')).collect()
[Row(ages=u'2'), Row(ages=u'5')]
+
+ (Note : astype is alias for cast)
--- End diff --
I think @marmbrus also suggested that cast docs be updated to note the
alias the other way -- there may be two more changes to make.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]