import plotly.graph_objects as go
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/Istackz/OOSE-TEST/master/data_file.csv')
df['id'] = df['type'] + '' + df['url'] + ', ' + df['created_at'] + '' + 'location: ' + df['description']+ df['how_to_apply']\
+ df['company_logo'].astype(str)
fig = go.Figure(data=go.Scattergeo(
mode='markers',
))
fig.update_layout(
title='Github JOBS',
geo_scope='usa',)
fig.show()
我的数据(“(位置,id,created_at等)”未显示在我的美国地图上。将鼠标悬停在美国MAP的位置时,地图应以CSV文件的形式显示所有单独的类别。