Skip to content
Snippets Groups Projects
Commit 00561c56 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

ENH: allow kwargs for read_xls

parent 1cceb592
No related branches found
No related tags found
1 merge request!22Release 0.3
...@@ -144,7 +144,7 @@ class XLSImporter(object): ...@@ -144,7 +144,7 @@ class XLSImporter(object):
self.unique_keys = [] if unique_keys is None else unique_keys self.unique_keys = [] if unique_keys is None else unique_keys
self.converters = converters self.converters = converters
def read_xls(self, filename): def read_xls(self, filename, **kwargs):
""" """
converts an xls file into a Pandas DataFrame. converts an xls file into a Pandas DataFrame.
...@@ -169,7 +169,7 @@ class XLSImporter(object): ...@@ -169,7 +169,7 @@ class XLSImporter(object):
"All but the first are being ignored.".format(filename)) "All but the first are being ignored.".format(filename))
try: try:
df = xls_file.parse(converters=self.converters) df = xls_file.parse(converters=self.converters, **kwargs)
except Exception as e: except Exception as e:
logger.warning( logger.warning(
"Cannot parse {}.".format(filename), "Cannot parse {}.".format(filename),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment