513f6337acc9722c55c4247faba0491806da8bfe,examples/uber.py,,,#,58

Before Change


    st.write(data)

if __name__ == "__main__":
    if len(sys.argv) > 1:
        hour = int(sys.argv[1])
    else:
        hour = 12
    assert 0 <= hour < 24
    display_uber_data(hour)

After Change


data = load_data(100000)

st.subheader("Pickups by hour")
st.bar_chart(np.histogram(data[DATE_TIME].dt.hour, bins=24, range=(0,24))[0])

hour = st.sidebar.slider("Hour to look at", 0, 23)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: streamlit/streamlit
Commit Name: 513f6337acc9722c55c4247faba0491806da8bfe
Time: 2019-08-28
Author: thiago@streamlit.io
File Name: examples/uber.py
Class Name:
Method Name:


Project Name: deepchem/deepchem
Commit Name: 2ac67c6812784044df1b138037264bc38977231b
Time: 2018-06-13
Author: caarmer@ucsc.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Layer
Method Name: add_summary_to_tg


Project Name: merenlab/anvio
Commit Name: 4fac1f7bd3c5d3f4b3bf416ba2009cdb3aa9973f
Time: 2019-10-11
Author: kiefl.evan@gmail.com
File Name: anvio/drivers/sourmash.py
Class Name: IterateKmerSourmash
Method Name: calc_similarity_matrix_entropy