190065554d8905884dff948e4bb655d431d7eec3,ggplot/stats/stat.py,stat,_calculate_groups,#stat#Any#Any#,81
Before Change
// Combine with original data
unique = data.groupby("group", as_index=False).apply(uniquecols)
unique.reset_index(drop=True, inplace=True)
missing = unique.columns - stats.columns
// Instead of a more expensive join, make sure the order is
// fine and concat. This is really not expected to fail
After Change
return pd.DataFrame()
stats = []
for _, old in data.groupby("group"):
new = self._calculate(old, scales)
unique = uniquecols(old)
missing = unique.columns - new.columns
u = unique.loc[[0]*len(new), missing].reset_index(drop=True)
df = pd.concat([new, u], axis=1)
stats.append(df)
stats = pd.concat(stats, axis=0, ignore_index=True)
// Note: If the data coming in has columns with non-unique
// values with-in group(s), this implementation loses the
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: has2k1/plotnine
Commit Name: 190065554d8905884dff948e4bb655d431d7eec3
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: _calculate_groups
Project Name: has2k1/plotnine
Commit Name: 23ccc81132999be23a5963299eb168cfe9788809
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: _calculate_groups
Project Name: gyoisamurai/GyoiThon
Commit Name: 78b56b5b833d7ae74853c2809058848681520a80
Time: 2019-12-11
Author: gyoiler3@gmail.com
File Name: report_merger.py
Class Name: MergeReport
Method Name: get_target_report