fix(pandas-postprocessing): percentage compare to use correct column (#16716)

This commit is contained in:
Ville Brofeldt
2021-09-16 13:29:58 +03:00
committed by GitHub
parent 836b5e2c86
commit a839649e5c
2 changed files with 2 additions and 2 deletions

View File

@@ -513,7 +513,7 @@ class TestPostProcessing(SupersetTestCase):
post_df.columns.tolist(), ["label", "y", "z", "percentage__y__z",]
)
self.assertListEqual(
series_to_list(post_df["percentage__y__z"]), [0.0, -1.0, -4.0, -3],
series_to_list(post_df["percentage__y__z"]), [0.0, -0.5, -0.8, -0.75],
)
# `ratio` comparison