changing colour of marks based on data values [vega-lite]

in the same notebook try

"color": {
  "condition": {"test": "datum['Horsepower'] < 100", "value": "black"},
  "value": "red"
},

see https://vega.github.io/vega-lite/docs/condition.html