fix(plugins): Fix dashboard filter for Table and Big Number with Time Comparison (#29517)

This commit is contained in:
Antonio Rivero
2024-07-08 23:07:35 +02:00
committed by GitHub
parent 1682994b7e
commit 9052f9fbb4
7 changed files with 37 additions and 9 deletions

View File

@@ -592,8 +592,9 @@ class QueryContextProcessor:
if time_grain:
# move the temporal column to the first column in df
col = df.pop(join_keys[0])
df.insert(0, col.name, col)
if join_keys:
col = df.pop(join_keys[0])
df.insert(0, col.name, col)
# removes columns created only for join purposes
df.drop(