Repository: spark
Updated Branches:
  refs/heads/master 6e5340269 -> 699906e53


[SPARK-7394][SQL] Add Pandas style cast (astype)

Author: kaka1992 <[email protected]>

Closes #6313 from kaka1992/astype and squashes the following commits:

73dfd0b [kaka1992] [SPARK-7394] Add Pandas style cast (astype)
ad8feb2 [kaka1992] [SPARK-7394] Add Pandas style cast (astype)
4f328b7 [kaka1992] [SPARK-7394] Add Pandas style cast (astype)


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/699906e5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/699906e5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/699906e5

Branch: refs/heads/master
Commit: 699906e538a3d03636adab546ca86d06d5d89293
Parents: 6e53402
Author: kaka1992 <[email protected]>
Authored: Thu May 21 11:50:39 2015 -0700
Committer: Reynold Xin <[email protected]>
Committed: Thu May 21 11:50:39 2015 -0700

----------------------------------------------------------------------
 python/pyspark/sql/column.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/699906e5/python/pyspark/sql/column.py
----------------------------------------------------------------------
diff --git a/python/pyspark/sql/column.py b/python/pyspark/sql/column.py
index d03bb6d..baf1ecb 100644
--- a/python/pyspark/sql/column.py
+++ b/python/pyspark/sql/column.py
@@ -302,6 +302,8 @@ class Column(object):
             raise TypeError("unexpected type: %s" % type(dataType))
         return Column(jc)
 
+    astype = cast
+
     @ignore_unicode_prefix
     @since(1.3)
     def between(self, lowerBound, upperBound):


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to