f41ef99d652c20007e301998603d28de0ac01cdd,ggplot/stats/stat_hline.py,stat_hline,_calculate,#stat_hline#Any#Any#,15
Before Change
except TypeError as err:
raise GgplotError(*err.args)
new_data = pd.DataFrame({"yintercept": yintercept})
new_data["y"] = new_data["yintercept"]
new_data["yend"] = new_data["yintercept"]
return new_data
After Change
raise GgplotError(*err.args)
yintercept = make_iterable(yintercept)
data = data.iloc[range(len(yintercept)), :]
data["yintercept"] = yintercept
data["y"] = data["yintercept"]
data["yend"] = data["yintercept"]
return data
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: has2k1/plotnine
Commit Name: f41ef99d652c20007e301998603d28de0ac01cdd
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_hline.py
Class Name: stat_hline
Method Name: _calculate
Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: fc4917ae8a7320fc9a258b50d82a177ed2124a91
Time: 2018-12-21
Author: jcastaldo08@gmail.com
File Name: category_encoders/basen.py
Class Name: BaseNEncoder
Method Name: fit_base_n_encoding
Project Name: daavoo/pyntcloud
Commit Name: b6106d3044f7800af8710cbdc998ed78f7e6588c
Time: 2016-11-30
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/structures/octree.py
Class Name: Octree
Method Name: get_level_as_sf
Project Name: has2k1/plotnine
Commit Name: f41ef99d652c20007e301998603d28de0ac01cdd
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_vline.py
Class Name: stat_vline
Method Name: _calculate