aa8a7efd83e323856ca48742cb44a2fcb84b6bea,examples/scratchpad.py,,,#,21

Before Change


// io.write(pd.DataFrame(json_data))
// io.json(json_data)

data = pd.DataFrame()
data["labels"] = list(string.ascii_lowercase[:10])
data["frequencies"] = list(range(10))
data.set_index("labels", inplace=True)
io.write(data)

After Change


// io.write(pd.DataFrame(json_data))


timings = pd.DataFrame.from_records([
    {"method": "no_cache", "time": 123.0},
    {"method": "cache",    "time": 345.0},
])

// timings.append(
// io.write(timings)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: streamlit/streamlit
Commit Name: aa8a7efd83e323856ca48742cb44a2fcb84b6bea
Time: 2018-04-24
Author: adrien.g.treuille@gmail.com
File Name: examples/scratchpad.py
Class Name:
Method Name:


Project Name: etal/cnvkit
Commit Name: 7c03f6dd8be4ee7de7f4a120984db889fafe9c28
Time: 2016-05-19
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_gainloss


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: load_featureset