diff options
author | kaka1992 <kaka_1992@163.com> | 2015-05-21 11:50:39 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-05-21 11:50:39 -0700 |
commit | 699906e538a3d03636adab546ca86d06d5d89293 (patch) | |
tree | 3d5f8ba696cbf786a69e27845a3d54293de37086 /python/pyspark | |
parent | 6e534026963e567f92743c5721de16325645223e (diff) | |
download | spark-699906e538a3d03636adab546ca86d06d5d89293.tar.gz spark-699906e538a3d03636adab546ca86d06d5d89293.tar.bz2 spark-699906e538a3d03636adab546ca86d06d5d89293.zip |
[SPARK-7394][SQL] Add Pandas style cast (astype)
Author: kaka1992 <kaka_1992@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)
Diffstat (limited to 'python/pyspark')
-rw-r--r-- | python/pyspark/sql/column.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/pyspark/sql/column.py b/python/pyspark/sql/column.py index d03bb6d33d..baf1ecbd0a 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): |