Python Forum
Batch processing and saving into new folder
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Batch processing and saving into new folder
#4
(Jun-09-2018, 08:56 PM)ljmetzger Wrote: Your code worked OK as is. I tested the code on Windows 10 with Python 3.6.5

NOTES:
a. Constants should be all CAPS (e.g. SKEL)
b. There should be a space after the '#' in comments
c. All 'import' statements should be at the top of the file
d. Create the 'SubFolder' if necessary
e. Create a function that reads and processes the Excel File (replaces original code)
f. Process all .xlsx files (CASE INSENSITIVE) in the Data Folder
g. if __name__ == '__main__': Every module in python has a special attribute called __name__ . The value of the __name__ attribute is set to '__main__' when a module is run as the main program. Otherwise the value of __name__ is set to contain the name of the module.

Thank you! Lewis! The code works well!!! I will keep your notes in mind as I continue to learn how to code in Python!
Reply


Messages In This Thread
RE: Batch processing and saving into new folder - by aeritano - Jun-10-2018, 01:17 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Miss-Classification problem with shuffled batch Faebs94 0 1,563 Sep-02-2021, 11:55 AM
Last Post: Faebs94
  Help batch converting .json chosen file to MySQL BrandonKastning 2 2,352 Mar-14-2020, 09:19 PM
Last Post: BrandonKastning
  Matplolib graphic from batch achilledue 2 2,539 Sep-11-2019, 08:43 AM
Last Post: buran
  Assign image names in folder to images in other folder. ujjwalrathod007 15 7,821 Sep-03-2018, 05:27 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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