text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = pd.read_csv('/kaggle/input/videogamesales/vgsales.csv')

data = pd.read_csv('/kaggle/input/videogamesales/vgsales.csv', index_col='Rank')

data.shape

data.dtypes

data.isnull().sum()

duplicate_rows_data = data[data.duplicated()]

data.drop_duplicates()

plt.figure(figsize=(10, 4))
sns.countplot(x='Genre', data=data, order=data['Genre'].value_counts().index)
plt.xticks(rotation='vertical')
plt.title('Genre vs. No. of Games released', fontsize=14)
plt.ylabel('No. of Games', fontsize=12)
plt.xlabel('Genre', fontsize=12)
plt.show()