Pandas 0.19.2, Windows Server 2012
La misma configuración se ejecuta bien en otros lugares, supongamos que falta una biblioteca.
>>> 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()
por lo general, esto significa que tiene un problema de instalación. Desinstalaría / reinstalaría (a través de conda) o pip
a veces (con versiones anteriores de conda), puede obtener instalaciones "parciales" en Windows.
concurrir, gracias.
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error: ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo, from pandas.plotting import autocorrelation_plot
funciona perfectamente.
Gracias
Gracias, funciona conmigo.
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error:
ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo,
from pandas.plotting import autocorrelation_plot
funciona perfectamente.
funciona bien para mí ... thnx
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error:
ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo,
from pandas.plotting import autocorrelation_plot
funciona perfectamente.
Esto funcionó para mi
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error:
ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo,
from pandas.plotting import autocorrelation_plot
funciona perfectamente.
¡Gracias!
De hecho, este puede ser otro tipo de problema. Por ejemplo:
de pandas.tools.plotting import autocorrelation_plot
Lanza un error: ModuleNotFoundError: Ningún módulo llamado 'pandas.tools'
Sin embargo, desde pandas.plotting import autocorrelation_plot funciona perfectamente.
¡Esto fue gracias!
Use esto para importar scatter_matrix ( desde pandas.plotting )
from pandas.plotting import scatter_matrix
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error:
ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo,
from pandas.plotting import autocorrelation_plot
funciona perfectamente.
Pero, ¿por qué puede funcionar 'from pandas.plotting import autocorrelation_plot'?
Puede confirmar
Use esto para importar scatter_matrix ( desde pandas.plotting )
from pandas.plotting import scatter_matrix
funcionó para mí también.
Comentario más útil
De hecho, este puede ser otro tipo de problema. Por ejemplo:
from pandas.tools.plotting import autocorrelation_plot
Lanza un error:
ModuleNotFoundError: No module named 'pandas.tools'
Sin embargo,
from pandas.plotting import autocorrelation_plot
funciona perfectamente.