5d8b81e16143d6eea9e86a586fe737854c03c772,linearmodels/panel/model.py,PanelOLS,_choose_cov,#PanelOLS#Any#,496

Before Change


            else:
                clusters = pd.DataFrame(group_ids)
        
        cov_config_upd["clusters"] = clusters.values if clusters is not None else clusters
        
        return cov_est, cov_config_upd
    

After Change


        if clusters is not None:
            clusters = self.reformat_clusters(clusters).copy()
            for col in clusters.dataframe:
                cat = pd.Categorical(clusters.dataframe[col])
                clusters.dataframe[col] = cat.codes.astype(np.int64)
            clusters = clusters.dataframe

        cluster_entity = cov_config_upd.pop("cluster_entity", False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: bashtage/linearmodels
Commit Name: 5d8b81e16143d6eea9e86a586fe737854c03c772
Time: 2017-04-07
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/model.py
Class Name: PanelOLS
Method Name: _choose_cov


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_grid


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_wrap