mirror of
https://github.com/tiennm99/serena.git
synced 2026-07-16 18:16:47 +00:00
3.4 KiB
3.4 KiB
In [ ]:
# Here an illustration of your library
from serena.sample_package.sample_module import hello_stranger
hello_stranger()In [ ]:
# slightly adjusted example from https://plotly.com/python/mapbox-layers/
import pandas as pd
import plotly.express as px
us_cities = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/us-cities-top-1k.csv",
)
fig = px.scatter_mapbox(
us_cities,
lat="lat",
lon="lon",
hover_name="City",
hover_data=["State", "Population"],
color_discrete_sequence=["fuchsia"],
zoom=3,
height=300,
)
fig.update_layout(mapbox_style="open-street-map", margin={"r": 0, "t": 0, "l": 0, "b": 0})
fig.show()