text_plain_output_1.png
import numpy as np

import pandas as pd

import seaborn as sns

anime_df = pd.read_csv('../input/anime.csv', header=0)
rating_df = pd.read_csv('../input/rating.csv', header=0)

anime_df.shape

anime_df.dtypes

anime_df.isnull().sum()

anime_df = anime_df.replace('Unknown', np.nan)
anime_df_nnull = anime_df.dropna()

anime_df_nnull.type.unique()

type_count_series = anime_df_nnull['type'].value_counts()
type_df = type_count_series.to_frame()
type_df

type_df = type_df.reset_index()
type_df.columns = ['type', 'counts']
type_df
sns.barplot(y=type_df['counts'], x=type_df['type'])