Pandas 0.19.2, Windows Server 2012
Das gleiche Setup läuft an anderer Stelle in Ordnung, vorausgesetzt, es handelt sich um eine fehlende Bibliothek.
>>> 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()
normalerweise bedeutet dies, dass Sie ein Installationsproblem haben. Ich würde deinstallieren / neu installieren (über Conda) oder pip
manchmal (bei älteren conda-Versionen) können Sie "teilweise" Installationen unter Windows durchführen.
stimme zu, danke.
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus: ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.
Vielen Dank
Danke, bei mir funktioniert es.
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus:
ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.
funktioniert gut für mich..thnx
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus:
ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.
Das hat bei mir funktioniert
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus:
ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.
Vielen Dank!
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
aus pandas.tools.plotting importieren autocorrelation_plot
Wirft einen Fehler aus: ModuleNotFoundError: Kein Modul namens 'pandas.tools'
Der Import von autocorrelation_plot aus pandas.plotting funktioniert jedoch einwandfrei.
Das war es danke!
Verwenden Sie dies beim Importieren von Scatter_matrix ( von pandas.plotting )
from pandas.plotting import scatter_matrix
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus:
ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.
Aber warum kann 'from pandas.plotting import autocorrelation_plot' funktionieren?
Kann bestätigen
Verwenden Sie dies beim Importieren von Scatter_matrix ( von pandas.plotting )
from pandas.plotting import scatter_matrix
hat bei mir auch funktioniert.
Hilfreichster Kommentar
Tatsächlich kann dies ein weiteres Problem darstellen. Zum Beispiel:
from pandas.tools.plotting import autocorrelation_plot
Wirft einen Fehler aus:
ModuleNotFoundError: No module named 'pandas.tools'
from pandas.plotting import autocorrelation_plot
funktioniert jedoch einwandfrei.