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
#1
I Have a file comprising 3 columns of data and I would like to transform these columns into a single column, one following the other e.g. below. Could someone kindly tell me how to write the code to do this. It would be much appreciated and get me out of a bind.

3560181.703 -3384947.321 -5.02245
3560191.703 -3384947.321 -4.88665
3560201.703 -3384947.321 -4.76042

Reformat to:

3560181.703
3560191.703
3560201.703
-3384947.321
-3384947.321
-3384947.321
-5.02245
-4.88665
-4.76042
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Converting column of values into muliple columns of counts highland44 0 275 Feb-01-2024, 12:48 AM
Last Post: highland44
  [SOLVED] Looking for documentation on Reportlab's canvas.transform() function NeilUK 1 634 Aug-23-2023, 01:21 PM
Last Post: NeilUK
  Reshaping a single column in to multiple column using Python sahar 7 2,108 Jun-20-2022, 12:35 PM
Last Post: deanhystad
  df column aggregate and group by multiple columns SriRajesh 0 1,069 May-06-2022, 02:26 PM
Last Post: SriRajesh
  Transform Dic to dataframe d9d9d 4 1,410 Apr-14-2022, 09:35 AM
Last Post: perfringo
  Split single column to multiple columns SriRajesh 1 1,355 Jan-07-2022, 06:43 PM
Last Post: jefsummers
  How to transform from wide to long format in python shantanu97 1 1,669 Nov-21-2021, 11:53 AM
Last Post: buran
  How to remove a column or two columns in a correlation heatmap? lulu43366 3 5,298 Sep-30-2021, 03:47 PM
Last Post: lulu43366
  Index error - columns vs non-column Vinny 3 4,967 Aug-09-2021, 04:46 PM
Last Post: snippsat
  Need Help splitting a column into many columns cokicoki 0 1,420 Jun-18-2021, 12:30 PM
Last Post: cokicoki

Forum Jump:

User Panel Messages

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