b4ac087dc9666a5e3038b3e4231f9bda8920bb6e,examples/app/gapminder/data.py,,process_data,#,5
Before Change
def get_color(r):
return Spectral6[regions_list.index(r.Group)]
regions["region_color"] = regions.apply(get_color, axis=1)
return fertility, life_expectancy, population_size, regions, years, regions_list
After Change
population = population.rename(columns=rename_dict)
regions = regions.rename(columns=rename_dict)
regions_list = list(regions.Group.unique() )
// Turn population into bubble sizes. Use min_size and factor to tweak.
scale_factor = 200
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: bokeh/bokeh
Commit Name: b4ac087dc9666a5e3038b3e4231f9bda8920bb6e
Time: 2016-09-09
Author: github@birdsbits.com
File Name: examples/app/gapminder/data.py
Class Name:
Method Name: process_data
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 333d69671c35b4566d6ec8a344a35507e49face9
Time: 2017-05-24
Author: jessicatemporal@gmail.com
File Name: develop/2017-05-19-jtemporal-cities-population-study.py
Class Name:
Method Name:
Project Name: bokeh/bokeh
Commit Name: b4ac087dc9666a5e3038b3e4231f9bda8920bb6e
Time: 2016-09-09
Author: github@birdsbits.com
File Name: examples/howto/interactive_bubble/data.py
Class Name:
Method Name: process_data