Home>

I would like to create a symmetric table using pandas in Python.
A symmetric table is a table that is used when playing a round-robin battle in a match.

df_AA = [{'Class': 0,1,2,3,4,5,7,27}, {'θ': 0,5,10,15,20,25,35,135}]
df_AAT = df_AA.T

df_AA is data extracted from another program.
Therefore, the type was written as Series.

I tried to create one data frame using these two data frames as follows, but it didn't go as expected.
df_AAA = pd.DataFrame ([df_AA, df_AAT])

I have researched various ways to combine them, but I'm stuck in a situation where I don't come out and I don't know what to do.