def get_workbooks(self):
"""
If the data to be processed is not stored in files or if
special parameters need to be passed to xlrd.open_workbook
then this method must be overriden.
Any implementation must return an iterable sequence of tuples.
The first element of which must be an xlrd.Book object and the
second must be the filename of the file from which the book
object came.
"""
for path in self.get_filepaths():
yield (
xlrd.open_workbook(
path,
pickleable=0,
formatting_info=1,
on_demand=True),
os.path.split(path)[1]
)
评论列表
文章目录