Python Forum
change csv file into adjency list
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change csv file into adjency list
#1
Hello everyone. I have a csv file like this.
[Image: view?usp=sharing]

and I want to change that data into csv file to look into like this.
[Image: view?usp=sharing]

Please, anyone help me. thank you
Larz60+ write Sep-21-2021, 03:15 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 12 27,841 Feb-13-2025, 04:48 AM
Last Post: tomhansky
  [SOLVED] [Linux] Write file and change owner? Winfried 6 1,480 Oct-17-2024, 01:15 AM
Last Post: Winfried
  What does .flush do? How can I change this to write to the file? Pedroski55 3 1,301 Apr-22-2024, 01:15 PM
Last Post: snippsat
  logging: change log file permission with RotatingFileHandler erg 0 2,438 Aug-09-2023, 01:24 PM
Last Post: erg
  How can I change the uuid name of a file to his original file? MaddoxMB 2 2,074 Jul-17-2023, 10:15 PM
Last Post: Pedroski55
  Change font in a list or tuple apffal 4 3,690 Jun-16-2023, 02:55 AM
Last Post: schriftartenio
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 1,603 Feb-15-2023, 05:34 PM
Last Post: zsousa
  How to change the datatype of list elements? mHosseinDS86 9 3,519 Aug-24-2022, 05:26 PM
Last Post: deanhystad
  find some word in text list file and a bit change to them RolanRoll 3 2,322 Jun-27-2022, 01:36 AM
Last Post: RolanRoll
Photo (Beginners problem) Does file change during this code? fiqu 3 2,650 Nov-03-2021, 10:23 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

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