baeb73146346b7caf27155dfef0914138b2e7201,examples/plotting/file/brewer.py,,,#,7

Before Change


from bokeh.palettes import brewer

N = 20
categories = ["y" + str(x) for x in range(10)]
data = {}
data["x"] = np.arange(N)
for cat in categories:
    data[cat] = np.random.randint(10, 100, size=N)

df = pd.DataFrame(data)
df = df.set_index(["x"])

def stacked(df, categories):

After Change



N = 20
cats = 10
df = pd.DataFrame(np.random.randint(10, 100, size=(N, cats))).add_prefix("y")

def  stacked(df):
    df_top = df.cumsum(axis=1)
    df_bottom = df_top.shift(axis=1).fillna({"y0": 0})[::-1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: bokeh/bokeh
Commit Name: baeb73146346b7caf27155dfef0914138b2e7201
Time: 2017-11-27
Author: pratapgr8@gmail.com
File Name: examples/plotting/file/brewer.py
Class Name:
Method Name:


Project Name: stellargraph/stellargraph
Commit Name: 3db0f69797d05b8090e4f1c72e9428991e3f2ff0
Time: 2020-03-04
Author: Huon.Wilson@data61.csiro.au
File Name: tests/mapper/test_directed_node_generator.py
Class Name:
Method Name: create_simple_graph


Project Name: bokeh/bokeh
Commit Name: 2f045e23607f4660d3920d6a91e322311516d6d6
Time: 2017-03-29
Author: jsignell@gmail.com
File Name: examples/plotting/file/unemployment.py
Class Name:
Method Name: