1ade8e25c1eaa4ad98f1887eaa9490bc7caf7966,ggplot/layer.py,layer,compute_statistic,#layer#Any#Any#,216

Before Change


        Compute & return statistics for this layer
        
        if not len(data):
            return pd.DataFrame()

        params = self.stat.setup_params(data)
        data = self.stat.use_defaults(data)
        data = self.stat.setup_data(data)

After Change


        Compute & return statistics for this layer
        
        if not len(data):
            return type(data)()

        params = self.stat.setup_params(data)
        data = self.stat.use_defaults(data)
        data = self.stat.setup_data(data)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: has2k1/plotnine
Commit Name: 1ade8e25c1eaa4ad98f1887eaa9490bc7caf7966
Time: 2016-05-16
Author: has2k1@gmail.com
File Name: ggplot/layer.py
Class Name: layer
Method Name: compute_statistic


Project Name: has2k1/plotnine
Commit Name: 1ade8e25c1eaa4ad98f1887eaa9490bc7caf7966
Time: 2016-05-16
Author: has2k1@gmail.com
File Name: ggplot/layer.py
Class Name: layer
Method Name: map_statistic


Project Name: has2k1/plotnine
Commit Name: 1ade8e25c1eaa4ad98f1887eaa9490bc7caf7966
Time: 2016-05-16
Author: has2k1@gmail.com
File Name: ggplot/stats/stat.py
Class Name: stat
Method Name: compute_panel


Project Name: has2k1/plotnine
Commit Name: 1ade8e25c1eaa4ad98f1887eaa9490bc7caf7966
Time: 2016-05-16
Author: has2k1@gmail.com
File Name: ggplot/layer.py
Class Name: layer
Method Name: setup_data