Where is pandas.tools Where is pandas.tools python-3.x python-3.x

Where is pandas.tools


Package pandas.tools.plotting was moved to pandas.plotting in this commit, as part of #16005 and #12548 in Pandas 0.20.0.

More recently, in this commit in Pandas #23376 released in Pandas 0.24.0, the deprecated pandas.tools package, which was previously allowing pandas.tools.plotting to keep working, was removed.

Ergo, once you allow Pandas to upgrade to 0.24.0 or later, you will need to replace imports from pandas.tools.plotting to be instead from pandas.plotting.


It became pandas.plotting.

Hope this helps.


Traceback (most recent call last):  File "brod.py", line 3, in <module>    from pandas.tools.plotting import scatter_matrixModuleNotFoundError: No module named 'pandas.tools'

This happens in new version pandas. This

from pandas.tools.plotting import scatter_matrix

is for old version pandas if you using new version pandas then write code

from pandas.plotting import scatter_matrix

instead of

from pandas.tools.plotting import scatter_matrix