Skip to content

Update folium_vincent_markers.py#502

Merged
ocefpaf merged 2 commits intopython-visualization:masterfrom
YasminFathy:patch-1
Sep 22, 2016
Merged

Update folium_vincent_markers.py#502
ocefpaf merged 2 commits intopython-visualization:masterfrom
YasminFathy:patch-1

Conversation

@YasminFathy
Copy link
Copy Markdown
Contributor

The old code has been commented to show the changes.

The old code has been commented to show the changes.
Comment thread examples/folium_vincent_markers.py Outdated
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
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

@ocefpaf
Copy link
Copy Markdown
Member

ocefpaf commented Sep 16, 2016

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

@YasminFathy
Copy link
Copy Markdown
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
Copy Markdown
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