mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix(post-processing): handle missing values in cumulative operator (#26429)
This commit is contained in:
@@ -46,6 +46,7 @@ def cum(
|
||||
"""
|
||||
columns = columns or {}
|
||||
df_cum = df.loc[:, columns.keys()]
|
||||
df_cum = df_cum.fillna(0)
|
||||
operation = "cum" + operator
|
||||
if operation not in ALLOWLIST_CUMULATIVE_FUNCTIONS or not hasattr(
|
||||
df_cum, operation
|
||||
|
||||
Reference in New Issue
Block a user