text_html_output_1.png
import pandas as pd

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import plotly.express as px

articles = pd.read_csv('/kaggle/input/h-and-m-personalized-fashion-recommendations/articles.csv')

fig = px.pie(articles, values='article_id', title='Distribution by Index Group Name', names='index_group_name', color_discrete_sequence=px.colors.sequential.RdBu, hover_data=['index_group_name'], labels={'index_group_name': 'Index Group Name'}, height=450)
fig.show()