2017-10-02 1 views
2

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:

Full output

+0

Geben Sie uns weitere Informationen. Nach dem Ausführen der Tests wird nichts auf dem Bildschirm gedruckt? –

+0

Können Sie die Ausgabe von 'pd.show_version()' anzeigen? – chrisb

+0

@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

Antwort

0

Ich denke, das alles auf Master festgelegt werden sollte,/in den kommenden (~ Oktober 2017) Version 0.21.0 Release.

Die Datetime diejenigen sind, weil Sie die neueste Version von dateutil verwenden, hier von Korrekturen gesetzt: https://github.com/pandas-dev/pandas/pull/16880

Die Warnung wurde ein bekanntes Problem, geschlossen hier: https://github.com/pandas-dev/pandas/issues/17463

Wenn Sie auf die versuchen, Entwicklungsversion und einige davon existieren noch, bitte öffnen Sie ein Problem auf dem Github Repo. https://github.com/pandas-dev/pandas

+0

Danke. Leider ist das Erstellen der Entwicklungsversion fehlgeschlagen, daher werde ich auf die offizielle Veröffentlichung von '' '0.21.0''' warten und diese als akzeptierte Antwort markieren, wenn diese Fehler behoben sind. – df7675