text_html_output_1.png
import pandas as pd

udemy_courses = pd.read_csv('/kaggle/input/udemy-courses/udemy_courses.csv', parse_dates=['published_timestamp'])

udemy_courses['price'] = udemy_courses['price'].str.replace('Free', '0').str.replace('TRUE', '0')
udemy_courses['price'] = udemy_courses['price'].astype('float')
udemy_courses['number_of_contents'] = udemy_courses['content_duration'].str.extract('([\\d\\.]+)\\s[\\w]+').astype('float')
udemy_courses['content_duration_type'] = udemy_courses['content_duration'].str.extract('[\\d\\.]+\\s([\\w]+)')
udemy_courses.drop('content_duration', axis=1, inplace=True)

udemy_courses.dropna(inplace=True)

udemy_courses['is_paid'].value_counts()