File: pandas2.0.patch

package info (click to toggle)
q2-quality-control 2024.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,464 kB
  • sloc: python: 4,354; makefile: 38; sh: 14; javascript: 1
file content (17 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix test failure with Pandas 2.0
Bug-Debian: https://bugs.debian.org/1044060
Author: s3v <c0llapsed@yahoo.it>
Last-Update: Mon, 19 Feb 2024 09:20:45 +0100


--- q2-quality-control.orig/q2_quality_control/tests/test_quality_control.py
+++ q2-quality-control/q2_quality_control/tests/test_quality_control.py
@@ -486,7 +486,7 @@
 
     def test_evaluate_composition_dont_test_all_levels(self):
         empty_expectations = pd.DataFrame(
-            columns=['s1', 's2', 's3']).astype(float)
+            columns=['s1', 's2', 's3'], index=[]).astype(float)
         empty_expectations.set_index(pd.Index([], name='Taxon'), inplace=True)
         mc = self.misclassified.loc[[
             'k__Ag;p__Bg;c__Cg;o__Dg;f__Eg;g__Fg;s__Gg']]