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.
-
Answer # 1
Related articles
- python - i want to set the user name logged in with django to url and jump to my page
- i want to get the full text of rt with tweepy in python
- python - i want to find the mode of a pixel with a pixel value of 1 or more
- python - i want to combine two dfs
- python - i want to scrape the contents of java in (web) html
- python 3x - i want to list the strings as they are
- python - i want to speed up the for statement
- python - i want to ignore the header and loop
- python - i want the block to disappear when the ball hits the block
- python - i want to get the elements in the linked site
- python - i want to determine if the channel is a text channel
- i want to pass the python path in bash
- python - i want to pass a list as an argument of glob and repeat it
- python - i want to solve this problem
- css - i want to align the tags in the center
- php - i want to display the date received from the form as the date
- vba - i want to replace the active cell with the era date
- javascript - i want to get the second level of the json file
- python - i want to read an image and display it
- c - i want to display the bit size of a bmp file
Related questions
- if the integer in the table created by dataframe and the ejected integer are the same, i want to make a conditional branch
- python 3x - why the element extracted from the list is dtaframe
- python 3x - dataframe column labels are unchanged
- python 3x - pandas: about line feed characters when outputting txt
- for - how to create a table in python that shows all the experimental combinations
- python - about the process of extracting the canceled data based on the absolute value in the data frame
- python 3x - how to extract data that meets the value conditions from another data frame based on the value of one data frame
- python 3x - i get lost when extracting columns in a dataframe
- python 3x - pandas matrix summary table insert columns
- python 3x - pandas: i want to normalize the result aggregated by pivot_table
Does this mean? ?
df_AAA = pd.concat ([df_AA, df_AAT], ignore_index = False)