Youmanitarian
Youmanitarian 13 Jun 2021

Up next

Morocco earthquake: Race to find survivors in remote disaster zones | 9 News Australia
11 Sep 2023
Morocco earthquake: Race to find survivors in remote disaster zones | 9 News Australia
uchetex · 0 Views

Python Automation for Remote Workers Series | Working with Files

4 Views
TAKE ACTION
Donations would go to support charities for #TECHNOLOGY / Remote Automation and Control

Let's do this! Let me know if there's specific repetitive tasks that you perform with your remote/office work. In this one we're taking a look at the building blocks of how to use python for file management on your system.

#python #Automation #tutorial

Support the Channel on Patreon --
https://www.patreon.com/join/derricksherrill
Join The Socials --
Reddit - https://www.reddit.com/r/CodeWithDerrick/
FB - https://www.facebook.com/CodeWithDerrick/
Insta - https://www.instagram.com/codewithderrick/
Twitter - https://twitter.com/codewithderrick
LinkedIn - https://www.linkedin.com/in/derricksherrill/
GitHub - https://github.com/Derrick-Sherrill
*****************************************************************

Thanks so much for the continued support. This time last year I was thanking you all for hitting 100 subscribers. Now, we just broke 35k. How crazy. Thank you all so much for the continued love and support of my channel. We've come a long way!

Full code from the video:

import os
from datetime import date
import pandas as pd

data_location = 'Docs/Employee Receipts/'
file_list = []
for file in os.listdir(data_location):
file_list.append(file)

data = {'file_names' : file_list }
file_df = pd.DataFrame(data)
new_file_directory = 'Docs/Processed Receipts/'
today = date.today()
#file_df.to_excel(new_file_directory + 'receipts_sum -' + str(today) + '.xlsx' )

for file in os.listdir(data_location):
os.rename(data_location + file, new_file_directory + file )


string_to_find = 'Derrick'
directory_to_search = 'Docs/Processed Receipts/'
derrick_docs = []
for file in os.listdir(directory_to_search):
with open(directory_to_search + file) as f:
if string_to_find in f.read():
derrick_docs.append(file)

print(derrick_docs)

https://github.com/Derrick-Sherrill/Python-Automation/blob/master/Remote%20Work%20Series/RemoteWorkerAutomation_files.py

Packages (& Versions) used in this video:
os
pandas 1.0.5
datetime

*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
https://github.com/Derrick-Sherrill/DerrickSherrill.com

Check out my website:
https://www.derricksherrill.com/

If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!

--- Channel FAQ --

What text editor do you use?
Atom - https://atom.io/

What Equipment do you use to film videos?
https://www.amazon.com/shop/derricksherrill

What editing software do you use?
Adobe CC - https://www.adobe.com/creativecloud.html
Premiere Pro for video editing
Photoshop for images
After Effects for animations

Do I have any courses available?
Yes & always working on more!
https://www.udemy.com/user/derrick-sherrill-2/

Where do I get my music?
I get all my music from the copyright free Youtube audio library
https://www.youtube.com/audiolibrary/music?nv=1

Let me know if there's anything else you want answered!

-------------------------

Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!

Show more
More ways to take action
Explore ways that you can help bring a solution to this issue.

Up next

Morocco earthquake: Race to find survivors in remote disaster zones | 9 News Australia
11 Sep 2023
Morocco earthquake: Race to find survivors in remote disaster zones | 9 News Australia
uchetex · 0 Views