Inserting variables into Google Sheets

Hi there, I was working with the Google Sheets Integration and I was trying to append some values from a counter named “Door Sensor Opens” to the sheets. I found this piece of YAML code online that worked for me:

data: "{{ states('counter.door_sensor_opens')|float(0) }}"

I was wondering if someone could explain what each portion of this line of YAML does? I want to learn about how it works to try and be able to modify it in the future if need be.