190065554d8905884dff948e4bb655d431d7eec3,ggplot/stats/stat.py,stat,_calculate_groups,#stat#Any#Any#,81

Before Change


        stats.reset_index(drop=True, inplace=True)

        // 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

After Change


            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
Italian Trulli
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: Kamnitsask/deepmedic
Commit Name: cf3e8847f191077bcf2d72b976ff0c5b2beaa2e7
Time: 2020-01-09
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/neuralnet/blocks.py
Class Name: ConvBlock
Method Name: makeLayer


Project Name: Pinafore/qb
Commit Name: 1be7ed32b7f84d4988d81b813446b4b359c277ba
Time: 2018-04-26
Author: sjtufs@gmail.com
File Name: qanta/buzzer/util.py
Class Name:
Method Name: process_question