Hello
The people app in Teams is strictly for viewing only. This feature is still extremely new and product team is still gathering feedback, especially if you are a Teams product insider member. Feedback can be submited here: https://feedbackportal.microsoft.com/feedback
As for edits, if the contacts are synced from your outlook.com account or your phone, you can edit it via outlook.com > people, or your phone instead.