73ad6c44ac50b5af8ae4421b243550d32a6c952c,src/fetch_purchases_suppliers.py,,retrieve_data,#,22
Before Change
suppliers_info = []
for suppliers_page in fetch_suppliers():
for supplier in suppliers_page["_embedded"]["fornecedores"]:
suppliers_info.append(supplier)
df = pd.DataFrame(suppliers_info, columns=suppliers_attributes_columns.keys())
df.rename(columns=dict(zip(suppliers_attributes_columns.keys(), suppliers_attributes_columns.values())), inplace=True)
return df
After Change
suppliers = supplier_details()
df = pd.DataFrame(suppliers, columns=columns)
df.rename(columns=columns, inplace=True)
return df
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 73ad6c44ac50b5af8ae4421b243550d32a6c952c
Time: 2017-03-20
Author: cuducos@users.noreply.github.com
File Name: src/fetch_purchases_suppliers.py
Class Name:
Method Name: retrieve_data
Project Name: ericmjl/pyjanitor
Commit Name: 27d01d957c1a2817a28ffbd7fc387c1c74c075c0
Time: 2018-03-21
Author: BB5361@engie.com
File Name: janitor/functions.py
Class Name:
Method Name: clean_names
Project Name: catalyst-cooperative/pudl
Commit Name: 502b5044afc68eb0c1256edf9df735f682808214
Time: 2018-06-05
Author: zane.selvans@gmail.com
File Name: pudl/datastore.py
Class Name:
Method Name: organize