Skip to content

Commit

Permalink
Merge pull request #6 from datarevenue-berlin/feature/meta
Browse files Browse the repository at this point in the history
Add property columns and index to dask.SparseFrame and increase version to 0.8.0
  • Loading branch information
Talmaj authored Apr 25, 2017
2 parents 1da4035 + 9e33ab3 commit e8838cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ build/
*.so
traildb_sparse.c
__pycache__
*.egg-info
2 changes: 1 addition & 1 deletion sparsity/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.0
0.8.0
8 changes: 8 additions & 0 deletions sparsity/dask/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ def npartitions(self):
def _meta_nonempty(self):
return _meta_nonempty(self._meta)

@property
def columns(self):
return self._meta.columns

@property
def index(self):
return self._meta.index

def map_partitions(self, func, meta, *args, **kwargs):
return map_partitions(func, self, meta, *args, **kwargs)

Expand Down

0 comments on commit e8838cf

Please sign in to comment.