Filter runs by operation inside python

I know how to filter runs by operation using command line, but I would like to import runs inside python to do some additional analysis on results. here is the code to import all runs:

import pandas as pd

import guild.ipy as guild

GUILD_HOME = 'C:/ProgramData/Anaconda3/.guild'


runs = guild.runs()

This code works as expected. But if I want to import runs by operation it again imports all runs:
runs = guild.runs(operations='random-forest')
Is it possible to set an operation parameter like this and if yes, what’s wrong with my code?

You want a list there:

runs = guild.runs(operations=["random-forest"])

This is identical to running:

guild runs -o random-forest

It works, thanks.