CommencerCommencer gratuitement

Setting dependencies for Netflix

Netflix has compiled a forecast up to the 2019 financial year netflix_f_is, and has based the sales figures in 2019 on the following dependency:

  • Number of active subscriptions, which are based on the success of Netflix original shows.

For 2019, the success of original shows (critical and commercial acclaim) are estimated at 78%. The total amount of subscribers per percentage point is 500, and set to the variable n_subscribers_per_pp (i.e there is a calculated correlation between show success and number of subscribers).

In this exercise, we will calculate how dependent sales are on the number of subscribers in the forecast, which we will use in the next exercise.

The Netflix forecast, netflix_f_iscan be printed in the shell.

Cet exercice fait partie du cours

Financial Forecasting in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create a filter to select the sales row from the netflix_f_is dataset
sales_metric = [____]

# Filter for rows containing the Sales metric
filtered_netflix_f_is = ____[netflix_f_is.metric.isin(____)]

# Extract the 2019 Sales forecast value
forecast1 = netflix_f_is[____].____[0]

# Print the resulting forecast
print("The sales forecast is {}.".format(____))
Modifier et exécuter le code