Denny Rommel
Denny Rommel

Reputation: 33

Issues importing pandas tool scatter_matrix

I am currently facing an import issue with pandas.tools.plotting. I try to import the scatter matrix via

from pandas.tools.plotting import scatter_matrix

But I get the following error message from visual studio code:

[pylint] E0611:No name 'scatter_matrix' in module 'pandas.tools.plotting'

I also tried

from pandas.tools import scatter_matrix

but it didn't work either. Why can't I import the scatter matrix?

I am using

Upvotes: 3

Views: 3159

Answers (2)

Ehud Dayan
Ehud Dayan

Reputation: 1

e.g. scatter = pd.plotting.scatter_matrix(X, c = y, marker = 'o', s=40, hist_kwds={'bins':15}, figsize=(9,9), cmap = cmap)

Upvotes: 0

error
error

Reputation: 2471

You need to use this line of code to import pandas scatter_matrix. As seen in the docs of pandas visualization.

from pandas.plotting import scatter_matrix

Upvotes: 5

Related Questions