Skip to content

Commit

Permalink
Use correct number of chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Mar 31, 2016
1 parent e422faf commit b01b201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/pyarrow/table.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cdef class ChunkedArray:


def iterchunks(self):
for i in range(self.length()):
for i in range(self.num_chunks):
yield self.chunk(i)


Expand Down Expand Up @@ -125,7 +125,7 @@ cdef class Column:
return self.column.null_count()

property name:

def __get__(self):
return frombytes(self.column.name())

Expand Down Expand Up @@ -219,7 +219,7 @@ cdef class Table:
return pd.DataFrame(dict(zip(names, data)), columns=names)

property name:

def __get__(self):
self._check_nullptr()
return frombytes(self.table.name())
Expand All @@ -234,7 +234,7 @@ cdef class Table:
cdef Column column = Column()
column.init(self.table.column(index))
return column

def __getitem__(self, i):
return self.column(i)

Expand Down

0 comments on commit b01b201

Please sign in to comment.