Plotly filter on value

Hi,

I would like to use the transform but I get an error: ValueError: Invalid property specified for object of type plotly.graph_objs.Scatter: ‘transforms’

fig = go.Figure(
        data=go.Scatter(x=foo, y=bar, mode='markers', transforms=[dict(type='filter',target=df['foo'], operation= '>', value=0)],marker=dict(color=f, colorbar=dict(title=F), colorscale="Viridis"))
    )

The problem lays somewhere here:

  transforms = [dict(
         type='filter',
         target=df['foo'],
         operation='>',
         value=0
  )]

I have no idea what could be wrong. Can someone help me please?

Thanks in advance!

Kind regards,
Sarah