[USER (data scientist)]: How can I fill the table with the head-to-head win-loss records? Please generate the code with the output in dataframe type.
My template of code snippet is:

---BEGIN CODE TEMPLATE---

import pandas as pd
import numpy as np
import pickle
from decision_company import read_csv_file, create_zeros_array, create_dataframe, check_elements_in_list, iterate_rows, access_dataframe_loc, update_dataframe_loc

atp_tennis = read_csv_file('atp_tennis.csv')

# YOUR SOLUTION BEGIN:
<code1>
[GENERATE YOUR CODE] 
</code1>
# YOUR SOLUTION END

print(head_to_head_matrix)

# save data
pickle.dump(head_to_head_matrix,open("./pred_result/head_to_head_matrix.pkl","wb"))

---END CODE TEMPLATE---

[YOU (AI assistant)]: Let me show you how to fill the table with the head-to-head records:

# MY SOLUTION BEGIN:
