Objective: to fill in one dataframe with another using transpose
df = pd.DataFrame({\'Attributes\': [\'love\', \'family\',\'tech\']}) df.T
Use .loc accessor to set the first row of data using a listified df['Attributes'].
.loc
data
df['Attributes']
data.loc[0] = df['Attributes'].tolist()
Result:
Attribute_01 Attribute_02 Attribute_03 0 love family tech