重要性★★★★☆
难度★★★☆☆
一家跨国公司正在评估潜在的市场扩张目标。他们根据人口和 GDP 来考虑各国。
你的任务是生成一个气泡图,以可视化不同国家人口与 GDP 之间的关系。
气泡的大小应代表人口规模。
使用以下数据集:
国家:[‘Country A’, ‘Country B’, ‘Country C’, ‘Country D’, ‘Country E’]
人口(以百万为单位):[50, 80, 120, 60, 90]
GDP(以十亿美元为单位):[500, 700, 1500, 800, 1000]
【数据生成代码示例】
importpandasaspd countries=['Country A','Country B','Country C','Country D','Country E']population=[50,80,120,60,90]gdp=[500,700,1500,