You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by rx...@apache.org on 2015/05/21 20:50:43 UTC

spark git commit: [SPARK-7394][SQL] Add Pandas style cast (astype)

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


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

Author: kaka1992 <ka...@163.com>

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 <ka...@163.com>
Authored: Thu May 21 11:50:39 2015 -0700
Committer: Reynold Xin <rx...@databricks.com>
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: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org