Pandas: import error: ImportError: No module named 'pandas.tools'

Created on 4 Apr 2017  路  12Comments  路  Source: pandas-dev/pandas

Pandas 0.19.2, Windows Server 2012
Same setup runs ok elsewhere assume it is a missing library.

>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "lib\pandas\__init__.py", line 39, in <module>
    from pandas.core.api import *
  File "lib\pandas\core\api.py", line 10, in <module>
    from pandas.core.groupby import Grouper
  File "lib\pandas\core\groupby.py", line 40, in <module>
    from pandas.core.frame import DataFrame
  File "lib\pandas\core\frame.py", line 72, in <module>
    from pandas.core.series import Series
  File "lib\pandas\core\series.py", line 2974, in <module>
    import pandas.tools.plotting as _gfx  # noqa
ImportError: No module named 'pandas.tools'
>>> quit()

Most helpful comment

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

All 12 comments

usually this means you have an installation issue. I would uninstall / reinstall (via conda) or pip

sometimes (with older versions of conda), you can get 'partial' installs on windows.

concur, thanks.

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

Thanks

Thanks, it works with me.

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

work fine for me..thnx

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

This worked for me

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

Thanks!

In fact this may be another lind of issue. For instance:
from pandas.tools.plotting import autocorrelation_plot
Throws an error: ModuleNotFoundError: No module named 'pandas.tools'
However, from pandas.plotting import autocorrelation_plot works perfectly.

This was it thank you!

Use this in importing scatter_matrix (from pandas.plotting)

from pandas.plotting import scatter_matrix

In fact this may be another lind of issue. For instance:

from pandas.tools.plotting import autocorrelation_plot

Throws an error: ModuleNotFoundError: No module named 'pandas.tools'

However, from pandas.plotting import autocorrelation_plot works perfectly.

But why can 'from pandas.plotting import autocorrelation_plot' work?

Can confirm

Use this in importing scatter_matrix (from pandas.plotting)

from pandas.plotting import scatter_matrix

worked for me too.

Was this page helpful?
0 / 5 - 0 ratings