Hello,
I’m doing the programming assignment for week 2 and running into an error in the second code cell in section " Feature Correlation" where I get the following:
TypeError Traceback (most recent call last)
Input In [8], in <cell line: 5>()
6 other_indices = feature_names.index(other_feature)
7 with sns.axes_style("darkgrid"):
----> 8 sns.regplot(
9 classification_changes[:, :, target_indices].reshape(-1),
10 classification_changes[:, :, other_indices].reshape(-1),
11 fit_reg=True,
12 truncate=True,
13 ci=99,
14 x_ci=99,
15 x_bins=len(classification_history),
16 label=other_feature
17 )
18 plt.xlabel(target_feature)
19 plt.ylabel("Other Feature")
TypeError: regplot() takes from 0 to 1 positional arguments but 2 positional arguments (and 6 keyword-only arguments) were given
The previous cells run fine for me but this one fails to plot. Am I missing to modify something in the previous cells or are there wrong parameters passed to the function?
Thank you