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 = data[data[DATE_TIME].dt.hour == hour]

st.subheader("Pickup locations at %ih" % hour)
st.map(data[data[DATE_TIME].dt.hour == hour])

st.subheader("Pickup breakdown by minute at %ih" % hour)
st.bar_chart(np.histogram(data[DATE_TIME].dt.minute, bins=60, range=(0,60))[0])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: uber/ludwig
Commit Name: b041b42765da9d7e6820e4d57354f9803c231b9e
Time: 2020-04-19
Author: kaushikbokka@gmail.com
File Name: ludwig/utils/hyperopt_utils.py
Class Name: ParallelExecutor
Method Name: execute


Project Name: keras-team/keras
Commit Name: 65e4f94e45f32d9cbe99337d74ed9c1ebad3412a
Time: 2015-06-03
Author: jason.ramapuram@viasat.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: get_output