Python Forum
Transform 3 Columns into Single Column
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transform 3 Columns into Single Column
#2
What've you got? Excel? Pandas df, csv?

You could just read the each row, column by column, into a list, then write that list to a single column.

Or dispense with the list and read each value straight into column 1 in a new file.
Reply


Messages In This Thread
Transform 3 Columns into Single Column - by DaveG - Apr-03-2022, 11:11 PM
RE: Transform 3 Columns into Single Column - by Pedroski55 - Apr-03-2022, 11:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Transform a pdf to markdown zzied 0 346 Feb-11-2025, 10:22 AM
Last Post: zzied
  Converting column of values into muliple columns of counts highland44 0 906 Feb-01-2024, 12:48 AM
Last Post: highland44
  [SOLVED] Looking for documentation on Reportlab's canvas.transform() function NeilUK 1 1,483 Aug-23-2023, 01:21 PM
Last Post: NeilUK
  Reshaping a single column in to multiple column using Python sahar 7 3,589 Jun-20-2022, 12:35 PM
Last Post: deanhystad
  df column aggregate and group by multiple columns SriRajesh 0 1,648 May-06-2022, 02:26 PM
Last Post: SriRajesh
  Transform Dic to dataframe d9d9d 4 2,436 Apr-14-2022, 09:35 AM
Last Post: perfringo
  Split single column to multiple columns SriRajesh 1 1,914 Jan-07-2022, 06:43 PM
Last Post: jefsummers
  How to transform from wide to long format in python shantanu97 1 2,371 Nov-21-2021, 11:53 AM
Last Post: buran
  How to remove a column or two columns in a correlation heatmap? lulu43366 3 7,629 Sep-30-2021, 03:47 PM
Last Post: lulu43366
  Index error - columns vs non-column Vinny 3 6,505 Aug-09-2021, 04:46 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020