i have a dataframe with 81 columns. Only four of them are interesting for more at the moment.
They are called 'Transmission' (object), 'Composite City MPG' (int64), 'Composite Highway MPG' (int64) and 'Composite Combined MPG' (int64).
I want the average of the MPG to each type of Transmission.
Thats what i tried.
data.groupby(['Transmission'], sort=True).mean()
How can i fix the code so that only the average of the relevant columns ('Composite City MPG' (int64), 'Composite Highway MPG' (int64) and 'Composite Combined MPG' (int64)) are shown?
Is groupby actually a good way to look for the average MPG for each type of transmission?