'"TypeError: unhashable type: 'numpy.ndarray'" on matplotlib scatterplot function

Getting an error while going through a course. The instructor's code works, but mine does not. Our code is the exact same - theirs is likely out of date. Been searching for a bit but can't find a good solution based on my code:

x_axis = DataFrame(df, columns=["production_budget_usd"])
y_axis = DataFrame(df, columns=["worldwide_gross_usd"])
plt.scatter(x_axis, y_axis)
plt.show()

This gives back the error;

"TypeError: unhashable type: 'numpy.ndarray'"

Any help much appreciated.

Edit;

Screenshot of the full code since it will be much more helpful;

Full code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source