Skip to content

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

Merged
merged 2 commits into from
Sep 22, 2016

Conversation

YasminFathy
Copy link
Contributor

The old code has been commented to show the changes.

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
Copy link
Member

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))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ocefpaf
Copy link
Member

ocefpaf commented Sep 16, 2016

@YasminFathy do you want to try to convert this example to a Jupyter notebook?

@YasminFathy
Copy link
Contributor Author

Thanks @ocefpaf
I have not try Jupyter notebook before, but I will try it within a couple of days and will convert this example.

@ocefpaf
Copy link
Member

ocefpaf commented Sep 22, 2016

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 😉

@ocefpaf ocefpaf merged commit edb5b2d into python-visualization:master Sep 22, 2016
sanga pushed a commit to sanga/folium that referenced this pull request Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants