From c36e02cb520a10c25e8e205b6d76a44696658e8d Mon Sep 17 00:00:00 2001 From: Kyle Prestel Date: Sun, 28 Oct 2018 12:26:44 -0400 Subject: [PATCH] Add kwargs back to support error handling --- pandas/core/groupby/groupby.py | 2 +- pandas/io/pytables.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 7d028e53f562de..0b4a4978f35e93 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -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 diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 0ab8c42289ebab..b3f932da6fa813 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -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 @@ -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) @@ -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 @@ -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)