Dataframe filter

Job ID: 31955918

Budget: $10 – $30 USD

I have a data frame of historical matches, i need to filter the following:
1.) Filter most recent n home and away matches and display as dataframe
2.) do a head-to-head function (Team A vs Team B):
a) Winning streak
b) Average Goals scored/conceded
Related categories: Python Machine Learning (ML) Data Science