question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with Map Plot

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
PatrikHlobilcommented, May 9, 2020

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

1reaction
PatrikHlobilcommented, May 7, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found