Python Forum
How to do a mass replace within a CSV file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to do a mass replace within a CSV file?
#9
So yes in my "comment" column its a free form text field, so it can be anything from 1 word to a whole paragraph

I ran the above suggestions and this is what is returned:

Date Time Comment
0 1/18/22 2:22 PM Someone Else: so for a Christmas back then
1 1/18/22 2:25 PM Someone Else: <Media omitted>
2 1/18/22 2:32 PM Davids: i dont care about the gifts

So im guessing Regex is my only option...??
Reply


Messages In This Thread
RE: How to do a mass replace within a CSV file? - by cubangt - May-09-2022, 05:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question [SOLVED] [Beautiful Soup] Replace tag.string from another file? Winfried 2 629 May-01-2025, 03:43 PM
Last Post: Winfried
  Replace values in Yaml file with value in dictionary PelleH 1 2,437 Feb-11-2025, 09:51 AM
Last Post: alexjordan
  Replace a text/word in docx file using Python Devan 4 25,678 Oct-17-2023, 06:03 PM
Last Post: Devan
  Need to replace a string with a file (HTML file) tester_V 1 2,068 Aug-30-2023, 03:42 AM
Last Post: Larz60+
  Replace columns indexes reading a XSLX file Larry1888 2 1,868 Nov-18-2022, 10:16 PM
Last Post: Pedroski55
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 2,185 May-06-2022, 01:44 PM
Last Post: Larz60+
  Cloning a directory and using a .CSV file as a reference to search and replace bg25lam 2 2,992 May-31-2021, 07:00 AM
Last Post: bowlofred
  So, a mass of errors trying to run a zipline-dependant program on 3.5 env Evalias123 2 3,425 Jan-21-2021, 02:22 AM
Last Post: Evalias123
  Iterate 2 large text files across lines and replace lines in second file medatib531 13 9,557 Aug-10-2020, 11:01 PM
Last Post: medatib531
  Replace XML tag and write to the same file krish216 4 11,013 Mar-26-2020, 07:39 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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