Alternative to map() for grouped dataframe?

I’m trying to do one quadratic fit per subdataframe on a grouped dataframe (using two of it’s columns obviously), but i can’t use map() to do it because it’s reserved, and doing a list comprehension throws an error because i’m working with views. How should i do this?