Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/8647#discussion_r38949687
--- 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 --
The problem that I was referring to is exactly that the documentation is
repeated instead of being adapted for the function that is described. The code
examples for `astype` should use `astype` not `cast`.
---
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]