Skip to content

Commit

Permalink
Add kwargs back to support error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
kprestel committed Oct 28, 2018
1 parent 2eaac84 commit c36e02c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ def cummin(self, axis=0, **kwargs):
if axis != 0:
return self.apply(lambda x: np.minimum.accumulate(x, axis))

if kwargs:
if kwargs.get('numeric_only') or False:
numeric_only = kwargs.get('numeric_only')
else:
numeric_only = False
Expand Down
10 changes: 5 additions & 5 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def get(self, key):
return self._read_group(group)

def select(self, key, where=None, start=None, stop=None, columns=None,
iterator=False, chunksize=None, auto_close=False):
iterator=False, chunksize=None, auto_close=False, **kwargs):
"""
Retrieve pandas object stored in file, optionally based on where
criteria
Expand Down Expand Up @@ -1405,7 +1405,7 @@ def _write_to_group(self, key, value, format, index=True, append=False,
)

# write the object
s.write(obj=value, append=append, complib=complib)
s.write(obj=value, append=append, complib=complib, **kwargs)

if s.is_table and index:
s.create_index(columns=index)
Expand Down Expand Up @@ -3452,7 +3452,7 @@ def validate_data_columns(self, data_columns, min_itemsize):
return [c for c in data_columns if c in axis_labels]

def create_axes(self, axes, obj, validate=True, nan_rep=None,
data_columns=None, min_itemsize=None):
data_columns=None, min_itemsize=None, **kwargs):
""" create and return the axes
leagcy tables create an indexable column, indexable index,
non-indexable fields
Expand Down Expand Up @@ -3965,14 +3965,14 @@ class AppendableTable(LegacyTable):

def write(self, obj, axes=None, append=False, complib=None,
complevel=None, fletcher32=None, min_itemsize=None,
chunksize=None, expectedrows=None, dropna=False):
chunksize=None, expectedrows=None, dropna=False, **kwargs):

if not append and self.is_exists:
self._handle.remove_node(self.group, 'table')

# create the axes
self.create_axes(axes=axes, obj=obj, validate=append,
min_itemsize=min_itemsize)
min_itemsize=min_itemsize, **kwargs)

for a in self.axes:
a.validate(self, append)
Expand Down

0 comments on commit c36e02c

Please sign in to comment.