73ad6c44ac50b5af8ae4421b243550d32a6c952c,src/fetch_purchases_suppliers.py,,save_csv,#Any#,50

Before Change



def save_csv(df):
    dataset_name = time.strftime("%Y-%m-%d") + "-" + "purchases-suppliers.xz"
    df.to_csv(path_or_buf=os.path.join("data", dataset_name), sep=",", compression="xz", encoding="utf-8", index=False)


def main():
    suppliers_info = retrieve_data()

After Change


def save_csv(df):
    dataset_name = date.today().strftime("%Y-%m-%d") + "-purchase-suppliers.xz"
    dataset_path = os.path.join("data", dataset_name)
    df.to_csv(dataset_path, compression="xz", encoding="utf-8", index=False)


def main():
    suppliers = retrieve_data()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

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: save_csv


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 962d656e0063a5ef9c0d6463e168d5ef1914ff56
Time: 2018-03-26
Author: f4bio.ferreira@gmail.com
File Name: cde/utils/io.py
Class Name:
Method Name: append_result_to_csv


Project Name: catalyst-cooperative/pudl
Commit Name: c056bdc7403b9b50117cb6123d8e3be448c5070e
Time: 2020-01-14
Author: zane.selvans@catalyst.coop
File Name: src/pudl/load/csv.py
Class Name:
Method Name: csv_dump