Many thanks!!
It's working fine now. Maybe in the future you could add something like the "pitch.selected_array['frequency']" also to formants to easier this process.
I proofreaded the example in github (same link), so If you find it useful to add it to the five examples available in the documentation, please don't hesitate. Could be useful for someone interested in compute formants with parselmouth and a way to contribute to the hard task of documentation ;).
Best regards
Dayana