Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Jul 1, 2015
1 parent 3b09d31 commit 02cb61a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,12 @@ def dtypes(self):
return [(str(f.name), f.dataType.simpleString()) for f in self.schema.fields]

@property
@ignore_unicode_prefix
@since(1.3)
def columns(self):
"""Returns all column names as a list.
>>> df.columns
[u'age', u'name']
['age', 'name']
"""
return [f.name for f in self.schema.fields]

Expand Down

0 comments on commit 02cb61a

Please sign in to comment.