mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
feat(advanced analysis): support MultiIndex column in post processing stage (#19116)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
# under the License.
|
||||
import pytest
|
||||
|
||||
from superset.exceptions import QueryObjectValidationError
|
||||
from superset.exceptions import InvalidPostProcessingError
|
||||
from superset.utils.core import PostProcessingBoxplotWhiskerType
|
||||
from superset.utils.pandas_postprocessing import boxplot
|
||||
from tests.unit_tests.fixtures.dataframes import names_df
|
||||
@@ -90,7 +90,7 @@ def test_boxplot_percentile():
|
||||
|
||||
|
||||
def test_boxplot_percentile_incorrect_params():
|
||||
with pytest.raises(QueryObjectValidationError):
|
||||
with pytest.raises(InvalidPostProcessingError):
|
||||
boxplot(
|
||||
df=names_df,
|
||||
groupby=["region"],
|
||||
@@ -98,7 +98,7 @@ def test_boxplot_percentile_incorrect_params():
|
||||
metrics=["cars"],
|
||||
)
|
||||
|
||||
with pytest.raises(QueryObjectValidationError):
|
||||
with pytest.raises(InvalidPostProcessingError):
|
||||
boxplot(
|
||||
df=names_df,
|
||||
groupby=["region"],
|
||||
@@ -107,7 +107,7 @@ def test_boxplot_percentile_incorrect_params():
|
||||
percentiles=[10],
|
||||
)
|
||||
|
||||
with pytest.raises(QueryObjectValidationError):
|
||||
with pytest.raises(InvalidPostProcessingError):
|
||||
boxplot(
|
||||
df=names_df,
|
||||
groupby=["region"],
|
||||
@@ -116,7 +116,7 @@ def test_boxplot_percentile_incorrect_params():
|
||||
percentiles=[90, 10],
|
||||
)
|
||||
|
||||
with pytest.raises(QueryObjectValidationError):
|
||||
with pytest.raises(InvalidPostProcessingError):
|
||||
boxplot(
|
||||
df=names_df,
|
||||
groupby=["region"],
|
||||
|
||||
Reference in New Issue
Block a user