affc4d5c1829441c4dec0f4c0dae9b6c5c298429,pandas/core/aggregation.py,,aggregate,#Any#Any#,531

Before Change


            return any(isinstance(r, ABCDataFrame) for r in results.values())

        if isinstance(results, list):
            return concat(results, keys=keys, axis=1, sort=True), True

        elif is_any_frame():
            // we have a dict of DataFrames

After Change


        keys = list(arg.keys())

        // Avoid making two isinstance calls in all and any below
        is_ndframe = [isinstance(r, ABCNDFrame) for r in results.values()]

        // combine results
        if all(is_ndframe):
            keys_to_use = [k for k in keys if not results[k].empty]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pandas-dev/pandas
Commit Name: affc4d5c1829441c4dec0f4c0dae9b6c5c298429
Time: 2020-10-22
Author: 45562402+rhshadrach@users.noreply.github.com
File Name: pandas/core/aggregation.py
Class Name:
Method Name: aggregate


Project Name: broadinstitute/gtex-pipeline
Commit Name: 080080a547e9d89adf4393c2a349544443c35962
Time: 2017-08-18
Author: francois@broadinstitute.org
File Name: rnaseq/src/aggregate_rnaseqc_metrics.py
Class Name:
Method Name:


Project Name: bambinos/bambi
Commit Name: c58c67e38deee612ba244f719b82780aa3928158
Time: 2016-08-28
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: Model
Method Name: build