-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update folium_vincent_markers.py #502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The old code has been commented to show the changes.
@@ -17,7 +17,9 @@ | |||
# Binned wind speeds for NOAA 46050. | |||
bins = range(0, 13, 1) | |||
cuts = pd.cut(NOAA_46050['wind_speed_cwind (m/s)'], bins) | |||
ws_binned = pd.value_counts(cuts).reindex(cuts.levels) | |||
#ws_binned = pd.value_counts(cuts).reindex(cuts.values.levels) # cuts is a series, so values should be accessed | |||
# and also levels have been depreciated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to comment it out. You may just remove and we can rely on git's history to check the changes.
# The example of Vincent/Vega Markers should be updated | ||
# https://github.com/python-visualization/folium | ||
buoy_map = folium.Map(location=[46.3014, -123.7390], zoom_start=7,tiles='Stamen Terrain') | ||
popup1 = folium.Popup(max_width=800,).add_child(folium.Vega(vis1, width=500, height=250)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@YasminFathy do you want to try to convert this example to a Jupyter notebook? |
Thanks @ocefpaf |
Thanks @YasminFathy for the contribution! I am merging this as-is and I will fix the linter errors in another PR. Feel free to try the Jupyter conversion any time 😉 |
Update folium_vincent_markers.py
The old code has been commented to show the changes.