Feature Engineering

Job ID: 36858613

Budget: $10 – $20 USD

Dear Experts,
I need your assistance with a data analysis project. I have attached a dataset, named "dfdata.csv," which contains football match information. Additionally, I have provided a function that calculates basic Head-to-Head statistics based on the dataset.

The task at hand involves creating a new dataframe with the calculated features. Here are the specific requirements:

Start by referencing the "dfdata.csv" dataset, beginning from the Date - 1 (previous date), and perform the necessary calculations to derive the desired statistics.
The calculated statistics will be used to predict whether the total goals (FTHG + FTAG) in a match are greater than or equal to 3 or less than 3.
Repeat step 1 for each row in the dataset, considering the information for all matches.
The final dataframe should include the following columns:

Notes:
Date: The date of the match
Div: The division in which the match took place
HomeTeam: The home team name
AwayTeam: The away team name
Total Matches: The total number of matches played between the two teams
Percentage Over 2.5 Goals: The percentage of matches with a total of over 2.5 goals
Average Goals per Game: The average number of goals per game in the head-to-head matches
Both Teams Scoring: Whether both teams scored in the majority of the matches (yes or no)
H2H Percentage Over 2.5 Goals: The percentage of head-to-head matches with a total of over 2.5 goals
Home Team Goals Scored per Match: The average number of goals scored by the home team per match
Home Team Goals Conceded per Match: The average number of goals conceded by the home team per match
Away Team Goals Scored per Match: The average number of goals scored by the away team per match
Away Team Goals Conceded per Match: The average number of goals conceded by the away team per match
Over/Under: The prediction of whether the total goals in the match will be over 2.5 or under 2.5
If you require further clarification or have any questions, please don't hesitate to contact me. The budget for this project ranges from $10 to $20, and I expect it to be completed within 2 hours.

Thank you in advance for your expertise and assistance. I look forward to your prompt response.