File: scipy-test.patch

package info (click to toggle)
sklearn-pandas 2.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 440 kB
  • sloc: python: 1,177; sh: 12; makefile: 8
file content (20 lines) | stat: -rw-r--r-- 728 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: fix tests for current scipy
 scipy has made changes to its class hierarchy, update the tests to match
Author: Steve Langasek <steve.langasek@ubuntu.com>
Bug-Debian: https://bugs.debian.org/1013540
Last-Update: 2022-08-20
Forwarded: no

Index: sklearn-pandas-2.2.0/README.rst
===================================================================
--- sklearn-pandas-2.2.0.orig/README.rst
+++ sklearn-pandas-2.2.0/README.rst
@@ -473,7 +473,7 @@
     ...     ('pet', CountVectorizer()),
     ... ], sparse=True)
     >>> type(mapper5.fit_transform(data))
-    <class 'scipy.sparse.csr.csr_matrix'>
+    <class 'scipy.sparse._csr.csr_matrix'>
 
 The stacking of the sparse features is done without ever densifying them.