Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
csv files
#1
I'm new to python. When reading and writing csv files, I want to achieve that the values corresponding to the dialogue column and the values corresponding to utterance are spliced into dia{}_utt{}. Please see the attachement. How to do that? Could you please show some coding or tutorial for me?

[Image: image.png]

Attached Files

Thumbnail(s)
   
Reply
#2
dialogue = 0
utterance_id = 1
path_file = f"dia{dialogue}_utt{utterance_id}.csv"
print(path_file)
Output:
dia0_utt1.csv
Reply


Forum Jump:

User Panel Messages

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