cb8f918e2adea641b4e3de002f5c0b85e9bce511,examples/uber.py,,,#,15
Before Change
data[DATE_TIME] = pd.to_datetime(data[DATE_TIME])
return data
nrows = 100000
data = load_data(nrows)
io.subheader("Usage By Day")
hist = np.histogram(data[DATE_TIME].dt.hour, bins=24, range=(0,24))
counts = pd.DataFrame(hist[0]).set_index(hist[1][:-1])
io.bar_chart(counts)
hour = 18
After Change
io.subheader(f"Raw Data at {hour}h")
io.write(data)
if __name__ == "__main__":
hour = 18
assert 0 <= hour < 24
display_uber_data(hour)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: streamlit/streamlit
Commit Name: cb8f918e2adea641b4e3de002f5c0b85e9bce511
Time: 2018-05-17
Author: adrien.g.treuille@gmail.com
File Name: examples/uber.py
Class Name:
Method Name:
Project Name: danforthcenter/plantcv
Commit Name: 3c8df2fc218bd42544ac0eebb8dbfc6724c27a14
Time: 2019-06-06
Author: noahfahlgren@gmail.com
File Name: plantcv/plantcv/analyze_nir_intensity.py
Class Name:
Method Name: analyze_nir_intensity
Project Name: tensorflow/agents
Commit Name: 49a8409902e1405120892890509d0cd40caec621
Time: 2019-05-02
Author: leekh@google.com
File Name: tf_agents/agents/reinforce/reinforce_agent.py
Class Name: ReinforceAgent
Method Name: _train
Project Name: tensorflow/benchmarks
Commit Name: c48128868e7edcbf354ff79fa29fa0b79740b2f4
Time: 2018-07-18
Author: reedwm@google.com
File Name: scripts/tf_cnn_benchmarks/benchmark_cnn.py
Class Name: BenchmarkCNN
Method Name: _build_fetches