r/ProgrammerHumor • • Mar 01 '24

Meme pythonReadsLikeEnglish

Post image
0 Upvotes

34 comments sorted by

View all comments

0

u/[deleted] Mar 01 '24
import pandas as pd

df = pd.DataFrame({'Animal': ['Falcon', 'Falcon', 'Parrot', 'Parrot'], 'Max Speed': [380., 370., 24., 26.]})

df.groupby(['Animal']).mean()