79156977

Date: 2024-11-04 21:00:22
Score: 1
Natty:
Report link
import pandas as pd
import plotly.express as px

df=  pd.DataFrame( {'Latitude': [51.0, 51.2, 53.4, 54.5],
              'Longitude': [-1.1, -1.3, -0.2, -0.9],
              'values': [10, 2, 5, 1] })

fig = px.scatter_geo(df,lat='Latitude',lon='Longitude', hover_name="values")  # can add param size also as list
fig.update_layout(title = 'World map', title_x=0.5)
fig.show()

for GPS see example here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: JeeyCi