Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
merging rows
#1
I want to merge/join the values of 2 rows.

Below is the original document:-
[Image: input.png]

I want:-
[Image: output.png]
Reply
#2
This is very vague, there is no indication of how this data is stored, how you are accessing it in python and what python code you have tried so far.
ndc85430 and Larz60+ like this post
Reply
#3
Actually, I converted the PDF file containing the tables into Pandas dataframe and then Excel. Some cells in a pdf document include multiline text.
I've previously converted PDFs into Excel, but in those PDFs, the cells with multiline text had a \n at the end of the line, so I managed to make the multiline text into a single line, but in this PDF there is no \n.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  The code I have written removes the desired number of rows, but wrong rows Jdesi1983 0 1,637 Dec-08-2021, 04:42 AM
Last Post: Jdesi1983
  Merging spreadsheets with the same columns and extracting rows with matching entries johnbernard 3 9,903 Aug-19-2021, 03:08 PM
Last Post: johnbernard
  Pandas DataFrame combine rows by column value, where Date Rows are NULL rhat398 0 2,125 May-04-2021, 10:51 PM
Last Post: rhat398
  Indexing [::-1] to Reverse ALL 2D Array Rows, ALL 3D, 4D Array Columns & Rows Python Jeremy7 8 7,156 Mar-02-2021, 01:54 AM
Last Post: Jeremy7
  Merging excel worksheets with balnk rows sauravksingh85 1 1,335 May-19-2020, 12:46 PM
Last Post: sauravksingh85

Forum Jump:

User Panel Messages

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