Python Forum
Reshaping a single column in to multiple column using Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reshaping a single column in to multiple column using Python
#8
Always helps to read the documentation, especially when trying something new.

https://pandas.pydata.org/pandas-docs/st...excel.html

Quote:headerint, list of int, default 0
Row (0-indexed) to use for the column labels of the parsed DataFrame. If a list of integers is passed those row positions will be combined into a MultiIndex. Use None if there is no header.

https://numpy.org/doc/stable/reference/g...shape.html

Quote:numpy.reshape(a, newshape, order='C')[source]
Reply


Messages In This Thread
RE: Reshaping a single column in to multiple column using Python - by deanhystad - Jun-20-2022, 12:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adding PD DataFrame column bsben 2 314 Mar-08-2024, 10:46 PM
Last Post: deanhystad
  Get an average of the unique values of a column with group by condition and assign it klllmmm 0 279 Feb-17-2024, 05:53 PM
Last Post: klllmmm
  Help copying a column from a csv to another file with some extras g0nz0uk 3 469 Feb-01-2024, 03:12 PM
Last Post: DeaD_EyE
  Converting column of values into muliple columns of counts highland44 0 254 Feb-01-2024, 12:48 AM
Last Post: highland44
  Python code to set column width 1418 11 1,216 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 734 Dec-04-2023, 09:48 PM
Last Post: sanky1990
  python convert multiple files to multiple lists MCL169 6 1,547 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  Returning Column and Row Data From Spreadsheet knight2000 0 438 Oct-22-2023, 07:07 AM
Last Post: knight2000
  Find a string from a column of one table in another table visedwings049 8 1,176 Sep-07-2023, 03:22 PM
Last Post: deanhystad
  DF value by Column... not sure what to call it tester_V 2 566 Aug-26-2023, 06:56 PM
Last Post: tester_V

Forum Jump:

User Panel Messages

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