508078a326ad01638f825e560db8d4a369f5fb27,cde/empirical_evaluation/moments_time_series.py,,main,#,12

Before Change


  print(moments_df)

  // dump csv
  dump_dir = os.path.join(DATA_DIR, "moments_time_series")
  if not os.path.exists(dump_dir):
    os.makedirs(dump_dir)
  moments_df.to_csv(os.path.join(dump_dir, "moments_time_series.csv"))

After Change


    // dump csv
    if not os.path.exists(dump_dir):
      os.makedirs(dump_dir)
    moments_df.to_csv(dump_file_path)

  else:
    moments_df = pd.read_csv(dump_file_path, index_col=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 508078a326ad01638f825e560db8d4a369f5fb27
Time: 2019-01-06
Author: jonas.rothfuss@gmx.de
File Name: cde/empirical_evaluation/moments_time_series.py
Class Name:
Method Name: main


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


Project Name: oddt/oddt
Commit Name: c9a8472f03e0a71b7a5a762e1f649aeadf80bcfb
Time: 2017-11-30
Author: marta-sd@users.noreply.github.com
File Name: tests/test_pandas.py
Class Name:
Method Name: test_csv