In my last Kpop Data Analysis Project. I realized that there are some mistakes about nationality of kpop artists in the dataset. I corrected the data and made a clearer visualization of international Kpop artists by using Python and Plotly. This an interative choropleth of Kpop Stars' nationality other than South Korea. If you hover your pointers on the map, ther will be a information box showing how many Kpop star are from this country.
Kpop is well-known for its internationality, 148 idols (10%) are not from South Korea, but from 11 other countries and states. Notably, there are 46 artists from China. There are also 34 Japanese artists and 36 American artists (mostly are Korean-Americans).
import pandas as pd
import plotly.graph_objects as go
idols = pd.read_csv("kpop_idols.csv")
countries = idols.groupby("Country").size().reset_index(name='count')
countries = countries[countries["Country"]!="South Korea"]
countries.sort_values(by=['count'], ascending=False)
Country | count | |
---|---|---|
2 | China | 46 |
11 | USA | 36 |
5 | Japan | 34 |
1 | Canada | 8 |
9 | Taiwan | 7 |
10 | Thailand | 7 |
0 | Australia | 5 |
4 | Indonesia | 2 |
3 | Germany | 1 |
6 | Malaysia | 1 |
7 | Philippines | 1 |
fig = go.Figure(data=go.Choropleth(
locations = countries["Country"],
locationmode = 'country names',
z = countries["count"],
colorscale = 'greens',
autocolorscale=False,
reversescale=False,
marker_line_color='darkgray',
marker_line_width=0.5,
colorbar_title = "Count",
))
fig.update_layout(
title_x=0.5,
title_text = "Kpop Stars' nationality other than South Korea",)
fig.show()