89b43bbd55550d5c103a8b06281d9bc62e533680,QUANTAXIS/QAData/data_resample.py,,QA_data_min_resample,#Any#Any#,348
Before Change
for item in set(min_data.index.date):
min_data_p = min_data.loc[str(item)]
n = min_data_p["{} 21:00:00".format(item):].resample(
type_,
base=30,
closed="right",
loffset=type_
).apply(CONVERSION)
d = min_data_p[:"{} 11:30:00".format(item)].resample(
type_,
base=30,
After Change
closed="right",
loffset=type_
).agg(CONVERSION)
return pd.concat([part_1_res, part_2_res]).dropna().sort_index().reset_index().set_index(["datetime", "code"])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 89b43bbd55550d5c103a8b06281d9bc62e533680
Time: 2019-08-05
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAData/data_resample.py
Class Name:
Method Name: QA_data_min_resample
Project Name: librosa/librosa
Commit Name: eca463691a033207261d9b65f9302822b2509571
Time: 2015-10-12
Author: brian.mcfee@nyu.edu
File Name: tests/test_core.py
Class Name:
Method Name: test_fmt_scale
Project Name: nilmtk/nilmtk
Commit Name: 53823a31d05f187df7967b7208ce97f584964551
Time: 2014-12-20
Author: jack-list@xlk.org.uk
File Name: nilmtk/electric.py
Class Name: Electric
Method Name: activity_distribution