9a262723f9db85ca3c1daa82e224b75ee50b6ad0,examples/app/gapminder/main.py,,,#,16
Before Change
population = population_df_size[year]
population.name = "population"
df = pd.concat([fertility, life, population, region_name], axis=1)
df = df.fillna("NaN")
data[year] = df.to_dict("series")
source = ColumnDataSource(data=data[years[0]])
After Change
fertility_df, life_expectancy_df, population_df_size, regions_df, years, regions_list = process_data()
p = pd.Panel({"fertility": fertility_df, "life": life_expectancy_df, "population": population_df_size})
data = {}
region_name = regions_df.Group
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bokeh/bokeh
Commit Name: 9a262723f9db85ca3c1daa82e224b75ee50b6ad0
Time: 2017-03-23
Author: jsignell@gmail.com
File Name: examples/app/gapminder/main.py
Class Name:
Method Name:
Project Name: catalyst-cooperative/pudl
Commit Name: 1b0873d56a4f14a560b58468350e3dfc1551ed16
Time: 2020-06-29
Author: cgosnell@catalyst.coop
File Name: src/pudl/helpers.py
Class Name:
Method Name: add_fips_ids
Project Name: NTMC-Community/MatchZoo
Commit Name: a871536bcbb38b9ca03b0bc777712d8c0a79ad90
Time: 2018-12-13
Author: i@uduse.com
File Name: matchzoo/data_pack/pack.py
Class Name:
Method Name: pack