af89ac5acf45685e5a48c8d61328552dc92f8b4f,cesium/data_management.py,,parse_headerfile,#,59
Before Change
"series file in the uploaded archive, and "
"that the file names match the first column "
"of the header.")
if "target" in header:
targets = header["target"]
elif "class" in header:
targets = header["class"]
else:
targets = pd.Series([None], index=header.index)
feature_data = header.drop(["target", "class"], axis=1, errors="ignore")
return targets, feature_data
After Change
"class_label"]}, inplace=True)
labels = (header.label if "label" in header
else pd.Series([None], index=header.index))
feature_data = header.drop(["label", "class"], axis=1, errors="ignore")
return labels, feature_data
def parse_and_store_ts_data(data_path, output_dir, header_path=None,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: cesium-ml/cesium
Commit Name: af89ac5acf45685e5a48c8d61328552dc92f8b4f
Time: 2017-03-29
Author: brettnaul@gmail.com
File Name: cesium/data_management.py
Class Name:
Method Name: parse_headerfile
Project Name: jnothman/UpSetPlot
Commit Name: c7582e581b8172f4602a088d324c696b249735b4
Time: 2019-05-27
Author: joel.nothman@gmail.com
File Name: upsetplot/data.py
Class Name:
Method Name: from_contents
Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name: