Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🥰 PyL7VP 支持 DataFrame 数据类型 #21

Closed
lvisei opened this issue Sep 11, 2023 · 0 comments · Fixed by #46
Closed

🥰 PyL7VP 支持 DataFrame 数据类型 #21

lvisei opened this issue Sep 11, 2023 · 0 comments · Fixed by #46
Labels

Comments

@lvisei
Copy link
Member

lvisei commented Sep 11, 2023

💻 PyL7VP 支持 DataFrame 数据类型

🧐 What does the proposed API look like

station_df = pd.read_csv('坐标.csv')
map1.add_data(station_df)


df = pd.DataFrame(
    {'City': ['Buenos Aires', 'Brasilia', 'Santiago', 'Bogota', 'Caracas'],
     'Country': ['Argentina', 'Brazil', 'Chile', 'Colombia', 'Venezuela'],
     'Latitude': [-34.58, -15.78, -33.45, 4.60, 10.48],
     'Longitude': [-58.66, -47.91, -70.66, -74.08, -66.86]
    })

map1.add_data(df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant