nesturie / New-Features-Map-Bagboard

These features have dummy data. The data should not be treated as reliable on the third map. The idea of the different csv files on the third map, consists on the opportunity that the code gives to map&analyse different data files that can represent different groups.
0 stars 0 forks source link

Suggestion: change time selector to allow ranges #3

Open wikibag opened 4 years ago

wikibag commented 4 years ago

st.slider('Hour', 0, 23, [9,17])

nesturie commented 4 years ago

Facing problem at line 76- after changing the slider, this error shows up : Unexpected token N in JSON at position 34. `data = load_data(100000)

hour = st.slider('Hour', 0, 23, [9,17])

data = data[data[DATE_TIME].dt.hour == hour]

midpoint = (np.average(data["lat"]), np.average(data["lon"]))