0

Pandas - transpose one column

Basically trying to do the exact opposite of what OP is asking in this post linked above i.e., convert A B C into a single "Name" column with associated dates and "Quantity" column.

SRed2
  • 3
  • 1
  • `df.melt(id_vars='date', var_name='Name', value_name='Quantity')` cf. [`melt`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.melt.html) – mozway Sep 23 '21 at 13:24

0 Answers0