text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

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_free = data[data['is_paid'] == False]

data_free.shape

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

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

sns.set_style('ticks')
fig, ax = plt.subplots()
fig.set_size_inches(11.7, 8.27)
fig.set
sns.scatterplot(x="price", y="num_subscribers",hue="num_subscribers",ax=ax ,data=data_paid).set(title = 'price vs subscribers(paid)')

ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

sns.set_style('ticks')
fig, ax = plt.subplots()
fig.set_size_inches(11.7, 8.27)
fig.set
sns.scatterplot(x="price", y="num_lectures",hue="num_lectures",ax=ax ,data=data_paid).set(title = 'price vs number of lectures(paid)',xlabel= "price")

ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

sns.set_style('ticks')
fig, ax = plt.subplots()
fig.set_size_inches(11.7, 8.27)
fig.set
sns.scatterplot(x="price", y="engagement",hue="num_lectures",ax=ax ,data=data_paid).set(title = 'price vs engagement(paid)')

ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)

sns.set_style('ticks')
fig, ax = plt.subplots()
fig.set_size_inches(11.7, 8.27)
sns.set_palette('Blues_d')
sns.scatterplot(x='num_lectures', y='engagement', hue='num_lectures', ax=ax, data=data_paid).set(title='engagement vs number of lectures(paid)')
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)