Your message dated Thu, 9 Dec 2021 08:02:51 +0000
with message-id <[email protected]>
and subject line appears fixed
has caused the Debian Bug report #983328,
regarding pandas: sparse test_from_coo fails with scipy 1.6.1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
983328: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983328
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: pandas
Version: 1.1.5+dfsg-2
Severity: normal
Control: affects -1 src:scipy
scipy 1.6.1 has been uploaded to experimental.
pandas fails autopkgtest with this scipy version.
e.g. see
https://ci.debian.net/data/autopkgtest/unstable/amd64/p/pandas/10621452/log.gz
The error is a discrepant dtype in TestAccessor.test_from_coo:
__________________________ TestAccessor.test_from_coo __________________________
self = <pandas.tests.arrays.sparse.test_array.TestAccessor object at
0x7fb78e8d9700>
@td.skip_if_no_scipy
def test_from_coo(self):
import scipy.sparse
row = [0, 3, 1, 0]
col = [0, 3, 1, 2]
data = [4, 5, 7, 9]
sp_array = scipy.sparse.coo_matrix((data, (row, col)))
result = pd.Series.sparse.from_coo(sp_array)
index = pd.MultiIndex.from_arrays([[0, 0, 1, 3], [0, 2, 1, 3]])
expected = pd.Series([4, 9, 7, 5], index=index, dtype="Sparse[int]")
> tm.assert_series_equal(result, expected)
E AssertionError: Attributes of Series are different
E
E Attribute "dtype" are different
E [left]: Sparse[float64, nan]
E [right]: Sparse[int64, 0]
/usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_array.py:1196:
AssertionError
scipy 1.6.1 fixed some sparse matrix errors,
https://docs.scipy.org/doc/scipy-1.6.1/reference/release.1.6.1.html
One of the fixes affects coo dtype,
https://github.com/scipy/scipy/pull/13403
Perhaps it's triggering the pandas test failure though I'm not certain.
v1.2.2 is the latest pandas release
Has this error in test_from_coo been fixed in that latest release?
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-3-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
--- End Message ---
--- Begin Message ---
Version: 1.3.4+dfsg-1
Tests now pass.
--- End Message ---