Nach der Installation von Python 3.6.2 und Pandas auf Windows 10 64-Bit habe ich den Test here beschrieben. Das Scheitern scheint hauptsächlich mit zwei Problemen verbunden zu sein.Pandas Test Fehler
Die ersten drei Fehler haben mit Indizierung zu tun:
- TestMixedIntIndex.test_argsort & TestMixedIntIndex.test_numpy_argsort
TypeError: '<' not supported between instances of 'str' and 'int'
AssertionError: "'>' not supported" does not match "'<' not supported between instances of 'str' and 'int'"
- TestMixedIntIndex.test_numpy_argsort
Failed: DID NOT RAISE <class 'IndexError'>
Die restlichen 3 Fehler erscheinen Datum und Uhrzeit Fragen sein:
- TestDST.test_fallback_plural
def test_fallback_plural(self): # test moving from daylight savings to standard time import dateutil ... def _test_offset(self, offset_name, offset_n, tstart, expected_utc_offset): ... AssertionError: assert -7.0 == -8
- TestTimeZoneSupportDateutil.test_ambiguous_flags
AssertionError: assert Timestamp('2013-10-27 01:00:00+0100', tz='dateutil/GB-Eire', freq='H') == Timestamp('2013-10-27 02:00:00+0100', tz='dateutil/GB-Eire', req='H') + where Timestamp('2013-10-27 02:00:00+0100', tz='dateutil/GB-Eire', freq='H') = Timestamp('2013-10-27 01:00:00+0000', tz='dateutil/Europe/London', freq='H')
- TestTimeZones.test_ambiguous_compat
def test_ambiguous_compat(self): # validate that pytz and dateutil are compat for dst when the transition happens ... assert (result_pytz.to_pydatetime().tzname() == result_dateutil.to_pydatetime().tzname()) AssertionError: assert 'GMT' == 'BST' - GMT + BST
Schließlich bekam ich die folgende Warnung Zusammenfassung:
/Path/To/Tests/test_missing.py::test_array_equivalent_compat /Path/To/nump/core/numeric.py:2604: FutureWarning: elementwise == comparison failed and returning scalar instead; this will raise an error or perform elementwise comparison in the future. return bool(asarray(a1 == a2).all())
Edit 1:
Ausgabe von pd.show_versions()
INSTALLED VERSIONS ------------------
commit: None python: 3.6.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.20.3 pytest: 3.2.2 pip: 9.0.1 setuptools: 28.8.0 Cython: None numpy: 1.13.3 scipy: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.1 pytz: 2017.2 blosc: None bottleneck: None tables: None numexpr: None feather: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None s3fs: None pandas_gbq: None pandas_datareader: None
Edit 2:
Geben Sie uns weitere Informationen. Nach dem Ausführen der Tests wird nichts auf dem Bildschirm gedruckt? –
Können Sie die Ausgabe von 'pd.show_version()' anzeigen? – chrisb
@chrisb '' 'pd.show_version()' '' ist keine anerkannte Funktion. Die Ausgabe von '' 'pd .__ version__''' ist' '0.20.3'''. Ich führe den Test derzeit erneut durch und übergebe die Ausgabe an eine Datei, damit ich weitere Informationen bereitstellen kann. – df7675