Python Forum
Working with text data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with text data
#1
Hey everyone,

I am working with text data which has the following format in excel:

Interview 1
Speaker
Date
Text

Interview 2
Speaker
Date
Text

Interview 3
Speaker
Date
Text

... and so forth (there are 400 such interviews).

Having read the xlsx file into Python I would now like to structure the text data as follows:

interview_number Speaker Date Text
1 A 01/02/1999
1 A 01/02/1999
1 A 01/02/1999
1 A 01/02/1999
2 B 05/08/2000
2 B 05/08/2000


I am afraid I’m struggling to come up with a Python code/loop that helps me split up the text into such columns. Could you please help me with this?

Thanks a lot!
Reply


Messages In This Thread
Working with text data - by APK - Aug-21-2020, 08:28 AM
RE: Working with text data - by Larz60+ - Aug-21-2020, 01:34 PM
RE: Working with text data - by APK - Aug-21-2020, 03:21 PM
RE: Working with text data - by Larz60+ - Aug-21-2020, 09:51 PM
RE: Working with text data - by buran - Aug-22-2020, 04:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Login Module Help - Comparing data in a text file to data held in a variable KeziaKar 0 2,709 Mar-08-2018, 11:41 AM
Last Post: KeziaKar

Forum Jump:

User Panel Messages

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