Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bquery/ctable.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def cache_valid(self, col):
else:
return False

def cache_factor(self, col_list, refresh=False):
def cache_factor(self, col_list, refresh=False, **kwargs):
"""
Existing todos here are: these should be hidden helper carrays
As in: not normal columns that you would normally see as a user
Expand Down Expand Up @@ -61,14 +61,14 @@ def cache_factor(self, col_list, refresh=False):

carray_factor = \
bcolz.carray([], dtype='int64', expectedlen=self.size,
rootdir=col_factor_rootdir, mode='w')
rootdir=col_factor_rootdir, mode='w', **kwargs)
_, values = \
ctable_ext.factorize(self[col], labels=carray_factor)
carray_factor.flush()

carray_values = \
bcolz.carray(values.values(), dtype=self[col].dtype,
rootdir=col_values_rootdir, mode='w')
rootdir=col_values_rootdir, mode='w', **kwargs)
carray_values.flush()

def unique(self, col_or_col_list):
Expand Down