Issue with Map Plot
See original GitHub issueWhen I try to run the Mapplot example, I get the following error when I try to use plot_bokeh.map
:
AttributeError: ‘function’ object has no attribute ‘map’
The whole code is as follows:
import pandas as pd
import pandas_bokeh
pandas_bokeh.output_notebook()
df_mapplot = pd.read_csv(r"https://raw.githubusercontent.com/PatrikHlobil/Pandas-Bokeh/master/Documentation/Testdata/populated%20places/populated_places.csv")
df_mapplot["size"] = df_mapplot["pop_max"] / 1000000
df_mapplot.plot_bokeh.map(
x="longitude",
y="latitude",
hovertool_string="""<h2> @{name} </h2>
<h3> Population: @{pop_max} </h3>""",
tile_provider="STAMEN_TERRAIN_RETINA",
size="size",
figsize=(900, 600),
title="World cities with more than 1.000.000 inhabitants")
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Map chart error - Microsoft Community
I am plotting counties in Sweden using Excel 2016 maps, and I am having problems with Excel not being able to identify certain...
Read more >Incorrect MAP LOCATIONS in Power BI and how to fix it
Incorrect map locations in Power BI can be difficult to fix. How to make sure your data shows correctly on a map ?...
Read more >Maps Cannot be Displayed in Tableau!! How do I Fix This?
We plot maps using geographic fields. A field is recognized as a geographic field in Tableau by assigning it a geographic role.
Read more >R map plotting issue - Stack Overflow
I'm simply plotting lat/longs from a file onto a map in R. I'm having some issues as the points I plot are displayed...
Read more >Unable to plot data on map correctly - Bokeh Discourse
I've encountered an issue with plotting map data, and I'm not quite sure what I'm doing wrong here. ... The problems I'm encountering...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @boustrephon, @joeborrello,
I just fixed the conda build problem and you can now also install the most recent version of pandas-bokeh (0.4.3) via conda via:
conda install -c patrikhlobil pandas-bokeh
Best Patrik
Hi @boustrephon,
The conda package is out of date at the moment because there are problems with a dependency relation in used packages. Please install the latest version via pip and report If the issue I solved.
Best Patrik