text_html_output_1.png
import pandas as pd

import plotly.express as px

train = pd.read_csv('/kaggle/input/predict-student-performance-from-game-play/train.csv')
train_labels = pd.read_csv('/kaggle/input/predict-student-performance-from-game-play/train_labels.csv')
test = pd.read_csv('/kaggle/input/predict-student-performance-from-game-play/test.csv')

train.isnull().sum()

event_count = train['fqid'].value_counts().reset_index()
event_count.loc[event_count['fqid'] < 1.e1, 'index'] = 'Others' 
event_count=event_count.head(10)
fig=px.pie(event_count,values='fqid',names='index',template="plotly_dark",
           title="Analysis and Comparison of different fqid across index")
fig.show()

event_count = train['level_group'].value_counts().reset_index()
event_count.columns = ['level_group', 'count']
fig = px.bar(event_count, x='level_group', y='count', color='count', title='Count the number of occurrences of each level group', hover_data=event_count, template='plotly_dark')
fig.show()