ead53c9bd3205abfe3fdec30f8e6c8b39ea04329,src/pudl/extract/excel.py,GenericExtractor,load_excel_file,#GenericExtractor#Any#Any#,230
Before Change
Return:
string name of the xlsx file
info = self.ds.get_resources(self._dataset_name, year=year)
if info is None:
return
After Change
else:
logger.debug("Grabing new file.")
if p.name != xlsx_filename:
zf = zipfile.ZipFile(p)
excel_file = pd.ExcelFile(zf.read(xlsx_filename))
else:
excel_file = pd.ExcelFile(p)
self._file_cache[xlsx_filename] = excel_file
return excel_file
def excel_filename(self, year, page):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: catalyst-cooperative/pudl
Commit Name: ead53c9bd3205abfe3fdec30f8e6c8b39ea04329
Time: 2020-11-12
Author: cgosnell@catalyst.coop
File Name: src/pudl/extract/excel.py
Class Name: GenericExtractor
Method Name: load_excel_file
Project Name: catalyst-cooperative/pudl
Commit Name: d22b0ccbccd7c8659c8ec87556a60a8321ccab1c
Time: 2020-11-12
Author: cgosnell@catalyst.coop
File Name: src/pudl/extract/excel.py
Class Name: GenericExtractor
Method Name: load_excel_file
Project Name: catalyst-cooperative/pudl
Commit Name: 4c800b2a8546f5a2630dd1978ed7b7445be5e1fa
Time: 2021-02-22
Author: rousik@gmail.com
File Name: src/pudl/workspace/datastore.py
Class Name:
Method Name: main