Your message dated Mon, 24 Aug 2020 09:52:37 +0000
with message-id <[email protected]>
and subject line Bug#950924: fixed in python-feather-format 0.3.1+dfsg1-4
has caused the Debian Bug report #950924,
regarding python-feather-format: FTBFS with pandas 1.0:
test_boolean_object_nulls / test_sparse_dataframe fail
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.)
--
950924: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950924
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-feather-format
Version: 0.3.1+dfsg1-3
Control: tags -1 patch
Control: block 950430 by -1
Two tests fail with pandas 1.0 (from experimental):
======================================================================
ERROR: test_boolean_object_nulls
(feather.tests.test_reader.TestFeatherReader)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/python-feather-format-0.3.1+dfsg1/feather/tests/test_reader.py",
line 248, in test_boolean_object_nulls
self._check_pandas_roundtrip(df, null_counts=[1 * repeats])
File
"/build/python-feather-format-0.3.1+dfsg1/feather/tests/test_reader.py",
line 70, in _check_pandas_roundtrip
feather.write_dataframe(df, path)
File "/build/python-feather-format-0.3.1+dfsg1/feather/api.py", line
57, in write_dataframe
raise ValueError(msg)
ValueError: cannot serialize column 0 named bools with dtype boolean
======================================================================
ERROR: test_sparse_dataframe (feather.tests.test_reader.TestFeatherReader)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/build/python-feather-format-0.3.1+dfsg1/feather/tests/test_reader.py",
line 346, in test_sparse_dataframe
df = pd.DataFrame(data).to_sparse(fill_value=1)
File "/usr/lib/python3/dist-packages/pandas/core/generic.py", line
5273, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'to_sparse'
----------------------------------------------------------------------
Ran 25 tests in 0.255s
FAILED (errors=2)
Fix:
--- python-feather-format-0.3.1+dfsg1.orig/feather/api.py
+++ python-feather-format-0.3.1+dfsg1/feather/api.py
@@ -39,9 +39,11 @@ def write_dataframe(df, path):
# TODO(wesm): pipeline conversion to Arrow memory layout
for i, name in enumerate(df.columns):
col = df.iloc[:, i]
+ if pandas.api.types.is_sparse(col):
+ col = col.sparse.to_dense()
if pdapi.is_object_dtype(col):
- inferred_type = pandas.api.types.infer_dtype(col)
+ inferred_type = pandas.api.types.infer_dtype(col, skipna=False)
msg = ("cannot serialize column {n} "
"named {name} with dtype {dtype}".format(
n=i, name=name, dtype=inferred_type))
--- python-feather-format-0.3.1+dfsg1.orig/feather/tests/test_reader.py
+++ python-feather-format-0.3.1+dfsg1/feather/tests/test_reader.py
@@ -343,8 +343,8 @@ class TestFeatherReader(unittest.TestCas
# GH #221
data = {'A': [0,1,2],
'B': [1,0,1]}
- df = pd.DataFrame(data).to_sparse(fill_value=1)
- expected = df.to_dense()
+ df = pd.DataFrame(data).astype(pd.SparseDtype(int, fill_value=1))
+ expected = df.sparse.to_dense()
self._check_pandas_roundtrip(df, expected)
def test_duplicate_columns(self):
--- End Message ---
--- Begin Message ---
Source: python-feather-format
Source-Version: 0.3.1+dfsg1-4
Done: Drew Parsons <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-feather-format, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Drew Parsons <[email protected]> (supplier of updated python-feather-format
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 24 Aug 2020 17:18:26 +0800
Source: python-feather-format
Architecture: source
Version: 0.3.1+dfsg1-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team
<[email protected]>
Changed-By: Drew Parsons <[email protected]>
Closes: 950924
Changes:
python-feather-format (0.3.1+dfsg1-4) unstable; urgency=medium
.
* Team upload.
.
[ Debian Janitor ]
* Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
Repository-Browse.
* Update standards version to 4.5.0, no changes needed.
.
[ Drew Parsons ]
* debian patch test_pandas.patch enables build against pandas 1.0.
Thanks Rebecca Palmer. Closes: #950924.
Checksums-Sha1:
907ce10b4695f7c82f7551295553a12c292d9223 2299
python-feather-format_0.3.1+dfsg1-4.dsc
00c9fcabb623c2e0cb7d833258e421d6fd709e53 4492
python-feather-format_0.3.1+dfsg1-4.debian.tar.xz
Checksums-Sha256:
2781d4c03b7ec2e23f331dd71bb2d16b1e338c96fdcff57c52e8c5642078ce97 2299
python-feather-format_0.3.1+dfsg1-4.dsc
ea6d8031ee13732ddb71ee79aa25bf97bed41da97be761b3bed8b114d848662d 4492
python-feather-format_0.3.1+dfsg1-4.debian.tar.xz
Files:
0bf0371575d0bcb9ba8e868d44ac51a8 2299 python optional
python-feather-format_0.3.1+dfsg1-4.dsc
e0698aed99f0c9218ebed5563397332c 4492 python optional
python-feather-format_0.3.1+dfsg1-4.debian.tar.xz
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEI8mpPlhYGekSbQo2Vz7x5L1aAfoFAl9DhqwACgkQVz7x5L1a
AfpOgxAAsFJr1PS+Hr8VfnHptAl1Kt9aY+KXZfC5IhFqnp0hxYcwGAN6rl5z9R1Y
omRendSoemoMsFzZZZ9wtx6r3iZVW4cmsnVHsJkRE0+5FEb5T3+ddDAOTxs3WYe8
7ff/qS46fxKTdJcKr3dZIAqgD36pUFyIUwkpRH729qK+I/z02bJ3/OCDrF2+S36S
moNnIjm1ZKWwnPoQznCjRXdSLySjcnwBFmw1+G9M+ME2rbQN4B3FXBfKN7+sPS9U
HS2bsGFFjBMZfmNSz9Gl6YwowRef3Irv1pGUgjWvnwgo00dS7AM8KPsdJfelKLCc
m1xw+F3lixy0PV8c2BYNguw34giqDLHsahjpbBiI9EA0rnrl+ktbjCrcMK9+lmnR
hDOsSeV/uKavB0uHbustyjuDT8NPNt5js+JGiIlNr38uGop157UbPsHUL6+ohXII
e1a7NhQl1As9FhJG4pjuPEY6+EmhoIsWJtTHIc0m7DzL2eHrAiYeeCS9xig2GBTJ
MLMGL3XwVjEiQiUIXtZl/K8zX3GPNBUfQjpI8ZHEMF55QjvLrmglaFX9hnSIGCj0
OeQFrl8ZV5jnsTSucnMDDHXQIWSl7xvpVLjLduxgW+5FNdd1AklSL0tUqy8FOiZz
8HjCxahgGnsuZSowHvfmaANnHvDWb5mlTvfgXNChDNvo9Rf1+A4=
=6+8Y
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team