image_output_1.png
import pandas as pd

import pandas as pd
data = pd.read_csv('../input/udemy-courses/clean_dataset.csv')

data.shape

data_paid = data[data['is_paid'] == True]

data_paid.shape

data_paid.sort_values(by='num_subscribers', ascending=False)

data_paid_10 = data_paid.sort_values(by='num_subscribers', ascending=False)[0:10].sort_values('num_subscribers', ascending=False).reset_index(drop=True).reset_index()[['course_id', 'course_title', 'num_subscribers', 'num_reviews', 'price']]

data_paid_10