Redash python - conditional result

72 Views Asked by At

I badly need help. I've been searching codes around but couldn't find any.

in redash, using Python, I can get the query result by using

get query result

the sample result would be:

| WEEK_OFF | EMAIL | STATS |

| --- | --- | --- |

| 2023-03-06 | [email protected] | 97.54 |

| 2023-03-06 | [email protected] | 33.57 |

| 2023-03-06 | [email protected] | 98.99 |

| 2023-03-13 | [email protected] | 23.00 |

| 2023-03-13 | [email protected] | 77.54 |

| 2023-03-13 | [email protected] | 88.23 |

What I would like to do is only modify res such that it only contains rows with [email protected]. I know I can do this at the query level; however, I have a specific use case where I had to do it in Python.

0

There are 0 best solutions below