ff7d1bec6d558c4467f29c2b4f5ef9a446f4665b,examples/howto/server_embed/standalone_embed.py,,modify_doc,#Any#,13

Before Change



def modify_doc(doc):
    x = np.linspace(0, 10, 1000)
    y = np.log(x) * np.sin(x)

    source = ColumnDataSource(data=dict(x=x, y=y))

After Change


def modify_doc(doc):
    data_url = "http://www.neracoos.org/erddap/tabledap/B01_sbe37_all.csvp?time,temperature&depth=1&temperature_qc=0&time>=2016-02-15&time<=2017-03-22"
    df = pd.read_csv(data_url, parse_dates=True, index_col=0)
    df = df.rename(columns={"temperature (celsius)": "temperature"})
    df.index.name = "time"

    source = ColumnDataSource(data=df)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: bokeh/bokeh
Commit Name: ff7d1bec6d558c4467f29c2b4f5ef9a446f4665b
Time: 2017-03-22
Author: jsignell@gmail.com
File Name: examples/howto/server_embed/standalone_embed.py
Class Name:
Method Name: modify_doc


Project Name: bokeh/bokeh
Commit Name: ff7d1bec6d558c4467f29c2b4f5ef9a446f4665b
Time: 2017-03-22
Author: jsignell@gmail.com
File Name: examples/howto/server_embed/tornado_embed.py
Class Name:
Method Name: modify_doc


Project Name: gboeing/osmnx
Commit Name: cc2c3376832df749fc386f31621eff0b9babc1ea
Time: 2018-05-03
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: create_poi_gdf


Project Name: gboeing/osmnx
Commit Name: d66cfb74ac8c3b55f9728b57230387466e69e7d1
Time: 2017-12-25
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: create_poi_gdf