Python Forum
Running a code through multiple files in a folder
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running a code through multiple files in a folder
#1
Hello,

I am new to python. I have 1000 files in a folder and I want to run a block of code on all the files in the folder. The files contains textual content (tweets) and I want to remove the "https" and remove all the columns (eg. timestamp, article id etc) apart from the tweet content column
Any help would be extremely appreciated.
Reply
#2
what have you tried (or thought of) so far?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem in running a code akbarza 7 634 Feb-14-2024, 02:57 PM
Last Post: snippsat
  writing and running code in vscode without saving it akbarza 1 381 Jan-11-2024, 02:59 PM
Last Post: deanhystad
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 533 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  python convert multiple files to multiple lists MCL169 6 1,535 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  the order of running code in a decorator function akbarza 2 519 Nov-10-2023, 08:09 AM
Last Post: akbarza
  Rename files in a folder named using windows explorer hitoxman 3 737 Aug-02-2023, 04:08 PM
Last Post: deanhystad
  splitting file into multiple files by searching for string AlphaInc 2 890 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Rename all files in a folder hitoxman 9 1,483 Jun-30-2023, 12:19 AM
Last Post: Pedroski55
  how do I open two instances of visual studio code with the same folder? SuchUmami 3 881 Jun-26-2023, 09:40 AM
Last Post: snippsat
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 1,152 Feb-21-2023, 04:21 AM
Last Post: Auz_Pete

Forum Jump:

User Panel Messages

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