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

import seaborn as sns

ted_data = pd.read_csv('/kaggle/input/ted-talks/ted_main.csv')

ted_data.isnull().sum()

ted_data.dtypes

ted_data = ted_data.drop(['name'], axis=1)
ted_data.columns

def date_convert(x):
    return pd.to_datetime(x, unit='s')
ted_data['film_date'] = ted_data['film_date'].apply(date_convert)
ted_data['published_date'] = ted_data['published_date'].apply(date_convert)

# lets check who talked the most, top 20
import seaborn as sns
ax = sns.barplot(x="duration", y="main_speaker", data=ted_data.sort_values('duration', ascending=False)[:20])

# lets check who got the most views, top 20
ax = sns.barplot(x="views", y="main_speaker", data=ted_data.sort_values('views', ascending=False)[:20])

sns.distplot(ted_data[ted_data['views'] < 5000000.0]['views'])