Automate Multiple Sheet Excel Reporting - Python Automation Tutorial | Full Code Walk Through (2019)

Ғылым және технология

Python Automation Tutorial
In this one we'll cover the basics of how to automate your excel reports. I know I did this video previously, but I felt it was time to redo that one. In this one we'll cover pandas, NumPy, and Matplotlib for creating reports from multiple excel spreadsheets.
Kite helps fund the channel, thanks for checking them out and supporting me --
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. www.kite.com/get-kite/?...
#Python #Automation #Excel
Here's the excel workbooks from this video --
drive.google.com/open?id=1x6Z...
drive.google.com/file/d/16Yio...
Here's the full python beginners course to get you started using python-
• Learn Python - Course ...
Playlists you might consider interesting:
Pandas for beginners
• Learn Python Pandas #1...
NumPy Course (Free from Udemy)
• Introduction to NumPy ...
Hey Everyone! In this video we're covering the basics of how to automate your multiple sheet excel reporting using python. We'll cover the basics of everything you need to get started using pandas, numpy, matplotlib and python to automate Excel.
There's a lot more in depth stuff about automating excel reporting than what is covered in this video, so subscribe to the channel and I'll have the medium and advanced level videos up soon!
Let me know any feedback or any trips you have for automating excel reporting and I'll be sure to feature you (and the tips) in an upcoming video.
Thanks so much for watching and I hope this video helps you automate excel reporting.
Join The Socials -- Picking Shoutouts Across KZread, Insta, FB, and Twitter!
FB - / codewithderrick
Insta - / codewithderrick
Twitter - / codewithderrick
LinkedIn - / derricksherrill
GitHub - github.com/Derrick-Sherrill
Thanks so much for all the support! It's crazy that this topic catapulted my channel about a year ago and now I get to type this (and make an improved version) a year later. Thanks so much for supporting me. This one feels surreal. I appreciate you all so much!
5100+ subscribers and climbing. Thank you all.
*****************************************************************
Full code from the video:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
excel_file_1 = 'shift-data.xlsx'
excel_file_2 = 'third-shift-data.xlsx'
df_first_shift = pd.read_excel(excel_file_1, sheet_name='first')
df_second_shift = pd.read_excel(excel_file_1, sheet_name='second')
df_third_shift = pd.read_excel(excel_file_2)
print(df_first_shift)
print(df_first_shift['Product'])
df_all = pd.concat([df_first_shift, df_second_shift, df_third_shift])
print(df_all)
pivot = df_all.groupby(['Shift']).mean()
shift_productivity = pivot.loc[:,"Production Run Time (Min)":"Products Produced (Units)"]
print(shift_productivity)
#shift_productivity.plot(kind='bar')
#plt.show()
df_all.to_excel("output.xlsx")
github.com/Derrick-Sherrill/D...
Packages (& Versions) used in this video:
Python 3.7
NumPy 1.17
Pandas 0.15.0
Matplotlib
Mac OS operating system
*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:
github.com/Derrick-Sherrill/D...
Check out my website:
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 - atom.io/
What Equipment do you use to film videos?
www.amazon.com/shop/derricksh...
What editing software do you use?
Adobe CC - 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!
www.udemy.com/user/derrick-sh...
Where do I get my music?
I get all my music from the copyright free KZread audio library
kzread.info...
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!

Пікірлер: 496

  • @rccc4111
    @rccc41114 жыл бұрын

    This lesson would take more than 30 minutes for others to explain. Great pace & clarity. This is usually the best way to explain something for non-beginners. This is the essence! Thank you so much!

  • @derricksherrill3511
    @derricksherrill35114 жыл бұрын

    Sorry for the technical errors on this one (learning premiere and animations to improve the videos haha) - Medium & Advanced level techniques coming soon!

  • @soy34mb

    @soy34mb

    4 жыл бұрын

    Hi, great video. Is it possible the output to MS Access file instead of Excel File? The reason is because I would like to combine thousands of excel files and the quantity of rows of the output will be more than 60mm.

  • @ashleyramirez87

    @ashleyramirez87

    4 жыл бұрын

    Derrick Sherrill new stuff I just learned!

  • @user-fp1pf7dr5j

    @user-fp1pf7dr5j

    3 жыл бұрын

    Where is live

  • @luisfernandocuestasanchez4343

    @luisfernandocuestasanchez4343

    3 жыл бұрын

    Don't even worry about that man. You are doing God's work, thanks a lot. For all of us who have administrative jobs, this kind of content is amazing and I think college, at least in my country doesn't give us that (They didn't even taught us Excel). Now that I got out of it I will try to learn by myself and also with the valuable help of people like you. I have recently found in KZread more than all the courses of my university. Thanks for the inspiration and being a role model too.

  • @adamdenver8019

    @adamdenver8019

    2 жыл бұрын

    i guess im asking randomly but does anybody know of a tool to log back into an instagram account?? I stupidly forgot my account password. I appreciate any assistance you can give me!

  • @panditadata2595
    @panditadata25954 жыл бұрын

    Love😍your videos... So clear and straight to the point...high quality

  • @slyfox909
    @slyfox9094 жыл бұрын

    This guy is going places! It wasn’t too long ago when I watched one of your videos and you only had a couple thousand subs. Keep up the great work! Love your videos

  • @shaurya2544
    @shaurya25443 жыл бұрын

    Really sweet person knows what he is doing and is not all about money and friggin sponsors. Keep it up! Makes me cry happily!

  • @pablogcortez
    @pablogcortez4 жыл бұрын

    This tutorial is great, thank you so much!

  • @ApteryxRex
    @ApteryxRex4 жыл бұрын

    Just stumbled across this. Thanks so much - a clear, easy to follow example. Great stuff!

  • @thejohnhoang
    @thejohnhoang3 жыл бұрын

    dude thank you so much for this tutorial. i can't thank you how helpful you are to the data analysis community!

  • @joaquinsancaro6285
    @joaquinsancaro62852 жыл бұрын

    You have no idea how valuable this is to me. Thank you so much. Great content!

  • @christopherdismuke723
    @christopherdismuke7234 жыл бұрын

    Great content. I don’t see enough people talking about excel -> python.

  • @Darille1988
    @Darille19884 жыл бұрын

    You are such a blessing. Subscriber from the Philippines here

  • @MrStuartAllan
    @MrStuartAllan3 жыл бұрын

    Brilliant video, I have heard python mentioned numerous times but never seen it in action. Looks amazing, thanks for making the video!

  • @knockn9ck
    @knockn9ck3 жыл бұрын

    Holly.. you just convinced me of the worthiness of learning to program. I could automate 90% of my job!! Thank you

  • @edsonwinnerify
    @edsonwinnerify2 жыл бұрын

    I have a lot of things to learn from you man. Keep your videos coming up! Thanks

  • @expat2010
    @expat20104 жыл бұрын

    The pacing of your videos is perfect.

  • @jamesmcgee1912
    @jamesmcgee19122 жыл бұрын

    Clear and straight to the point. Good stuff.

  • @riteshtripathi8626
    @riteshtripathi86264 жыл бұрын

    KZread's algo popped up your video and this the first video to watch on your channel and I am subscribed to it. Thanks, this has been a great relieve for my production planning, though I am new in python.

  • 3 жыл бұрын

    Hi Derrick, I was nine when Apollo 11 was launched so, despite the difference of timelines between you and me, I feel very enthusiastic about my Python learning curve. I will utilize your instructive videos in order to implement a project on a native american language I am learning here in Central America. As things go further in my idiom classes the more rules appear, therefore I am expecting about storing different sources in different Excel files and combine them, with the proper sintactic rules, in some sort of a centralized dictionary. I have recorded the important features of this video for further use. Thanks.

  • @QueenaJami
    @QueenaJami3 жыл бұрын

    So glad I found your channel!Thanks Derrick!!

  • @JohnsonKongor
    @JohnsonKongor4 жыл бұрын

    Thanks, Derrick. Great job. I have worked with excel for over 15 years, manipulating data with excel multiple functions. But I still give credit to python and other programming languages for data automation. I'm transitioning.

  • @chillagatturavindranath8089
    @chillagatturavindranath80893 жыл бұрын

    Thank you for sharing your knowledge on Excels.

  • @lucianotavares4953
    @lucianotavares49534 жыл бұрын

    Thank you for sharing your knowledge! Very useful easy to understand! 👍

  • @kennytieshisshoes
    @kennytieshisshoes4 жыл бұрын

    Wow this was really straightforward and easy to understand.

  • @michelleamidon2083
    @michelleamidon20832 жыл бұрын

    I'm going to drop all professionalism and just say " holy shit "". I've watched ALOT of training videos On python but WOW...it was short, clear, concise, and understandable. I know the video is 2 yrs old but I hope he is having all the success he deserves!! Well done!!!!

  • @ER_aka_RAM
    @ER_aka_RAM4 жыл бұрын

    Excellent demonstration of functionality 🤙🏽

  • @faizanarain3080
    @faizanarain30804 жыл бұрын

    Brilliantly explained....I have been trying to learn python since 6 mounths........only this Guy made python easy for my dumb mind....

  • @claytonmarquardt5522
    @claytonmarquardt55223 жыл бұрын

    really good stuff. videos like these are great because we're doing real work and it helps me learn! thanks again.

  • @dylanyespersen
    @dylanyespersen4 жыл бұрын

    Amazing Tutorial, Derrick. Thank you so much :)

  • @VijayTiwari22981
    @VijayTiwari229813 жыл бұрын

    Very short and crisp video...to the point....Thanks

  • @TheYasinsonu
    @TheYasinsonu4 жыл бұрын

    Great Video! Helps me alot in day to day work. Thank you Derrick.

  • @BotanicalOdyssey
    @BotanicalOdyssey3 жыл бұрын

    This is so great! Thank you Derrick!!

  • @LornisHervilla
    @LornisHervilla3 жыл бұрын

    Thank you Derrick, great explanation!! You won a subscriber and a thumbs up. God bless you

  • @masbro-jk5bg
    @masbro-jk5bg4 жыл бұрын

    Great content dude. I am newbie, and learn a lot from this video! Thanks!

  • @ashokvarshan500
    @ashokvarshan5003 жыл бұрын

    really very clear in conveying the things opened a new way to process my excel files thank u so much

  • @espy58
    @espy583 жыл бұрын

    I really enjoyed the video. Concise and informative. Thank you

  • @fernandomgarin
    @fernandomgarin3 жыл бұрын

    Muchas Gracias Derrick, excelente tu video. Saludos desde Argentina.

  • @markslima1557
    @markslima1557 Жыл бұрын

    another outstanding video on python/pandas/excel tech!

  • @satriobudi6090
    @satriobudi60904 жыл бұрын

    I'm from Indonesia and I support this channel

  • @Warrior11538
    @Warrior11538 Жыл бұрын

    Derick you are doing a great job. God bless you.

  • @aduck24
    @aduck244 жыл бұрын

    I really like your videos, like I’m purely a beginner but I feel like I learn a lot from your videos (and I already wrote some codes to automate excel tasks). Can you do more how python can be used to automate excel. Thank you and keep up your good work.

  • @goingfurther8092
    @goingfurther80923 жыл бұрын

    It’s crazy how well you describe everything. Your clear and slow speaking is great for tutorials. Thanks a ton!

  • @omkarpatil2254

    @omkarpatil2254

    Жыл бұрын

    Because he is robot

  • @malamalufungulo7787
    @malamalufungulo77874 жыл бұрын

    This is a great tutorial! Great job!

  • @robertopulido9557
    @robertopulido95573 жыл бұрын

    you are the best, straight to the point

  • @ZhixueYuan1989
    @ZhixueYuan19892 жыл бұрын

    wow thank you so much for the great tutorial. This is gold.

  • @retrofutur1st
    @retrofutur1st2 жыл бұрын

    thanks for a great vid! truly grateful being walked through this stuff

  • @georgetosounidis5545
    @georgetosounidis55454 жыл бұрын

    Hi Derrick, that was awesome! I'll make sure i'll check your content on Udemy as well :)

  • @blackchristiangeek
    @blackchristiangeek2 жыл бұрын

    Thanks for the tips and I humbled to say that I never heard of some of these tools before this video. Accordingly, I have subscribed. Again, thanks, and God bless

  • @user-qd1bw8us1q
    @user-qd1bw8us1q3 жыл бұрын

    Я новичок, но все понял. Очень классно объясняешь :) I’m just a beginner, but understood everything. You do it great :) Привет из России!

  • @rushas
    @rushas4 жыл бұрын

    Good job. Thanks for sharing your knowledge

  • @bhthllj
    @bhthllj3 жыл бұрын

    Very well explained! Thank you!!

  • @zero2652
    @zero26523 жыл бұрын

    Thanks for sharing this knowledge, I appreciate it too much!!!

  • @Dividendology
    @Dividendology3 жыл бұрын

    Really great tutorial!

  • @malcom91
    @malcom913 жыл бұрын

    Amazing content here. Auto subscribed. Cheers from Spain :D

  • @priya-ok9ur
    @priya-ok9ur11 ай бұрын

    This video is really helpful. Thank you.

  • @BernhardWeber-l5b
    @BernhardWeber-l5b Жыл бұрын

    Very nice Tutorial. Thank you!

  • @maxbart1353
    @maxbart13533 жыл бұрын

    thanks, i learned so much from your videos

  • @taherismail5425
    @taherismail54254 жыл бұрын

    that was awesome video, i 'v never been seen one like that , thanks for your time my friend

  • @Rondondon747
    @Rondondon7474 жыл бұрын

    Your channel is so underrated.

  • @adaliciojunior9792
    @adaliciojunior97924 жыл бұрын

    this is simple amazing!!!! thank you for the video..

  • @ildefonsogiron4034
    @ildefonsogiron40343 жыл бұрын

    I never thought David Bowie was into computers!

  • @NathanColmenero

    @NathanColmenero

    3 жыл бұрын

    We could be heroes!!

  • @Brutserum

    @Brutserum

    3 жыл бұрын

    Lmfao

  • @azizmiya

    @azizmiya

    2 жыл бұрын

    Lol, this David Bowie is a real rock star

  • @drn_lvs

    @drn_lvs

    Жыл бұрын

    Just for onde day...

  • @luismontero3416

    @luismontero3416

    Жыл бұрын

    🤣

  • @rdmorillo0404
    @rdmorillo04044 жыл бұрын

    Very Good Video Derrick!

  • @juanalcaraz4300
    @juanalcaraz43004 жыл бұрын

    thanks for the upload this video. i wasn´t have idea how to use python for read excel. one greeting from argentina

  • @danielpinheirocampos4832
    @danielpinheirocampos48324 жыл бұрын

    Amazing mate!!

  • @yiubili1
    @yiubili14 жыл бұрын

    I am very glad that you are more used to be the tutor in youtube. Thanks for providing the material with link! Thanks for your video, really liked them all.

  • @scotts1409
    @scotts14093 жыл бұрын

    Amazing. You made it so easy.

  • @mr_anonymous_oo7
    @mr_anonymous_oo73 жыл бұрын

    You have done a great and simple video to understand pyexcel in combo thank you bro😀😀😀

  • @asadmehmood9558
    @asadmehmood95584 жыл бұрын

    I have seen power query more useful so far, I have been making interactive dashboards out of raw data from multiple excel sheets and when new data is updated in sheets just press refresh button and job done.

  • @sreejithpnair8973

    @sreejithpnair8973

    3 жыл бұрын

    COPY FOLDER NAMES TO EXCEL in ONE GO kzread.info/dash/bejne/naWKzLWMmrnUm9Y.html

  • @AXLAV

    @AXLAV

    3 жыл бұрын

    "so far" ... thats' why

  • @TaxMentors
    @TaxMentors3 жыл бұрын

    Very informative . God bless and keep posting

  • @themanbhagat
    @themanbhagat4 жыл бұрын

    very helpful tutorial bro Thank you!! love from india ❤️

  • @ShahadIsmail
    @ShahadIsmail2 жыл бұрын

    Interesting!! Thank u this was very helpful👍🏻

  • @TheSoorajthevally
    @TheSoorajthevally3 жыл бұрын

    Very good one. I liked that you cared to mention which Python Version you we using.

  • @phil.pinsky
    @phil.pinsky4 жыл бұрын

    Great video! I’m just getting into python to be able to pull data from webapi and convert json to csv. That would be a great video!

  • @eddieflyer555
    @eddieflyer5554 жыл бұрын

    Have to agree with the other Power Query comments - automating Excel reports using Power Query is super easy, built into Excel, and no coding required! People should look at the many KZread tutorials to familiarise themselves with it. I'm not sure why you'd go to Python for the scenarios noted - Power Query is way more user friendly (built into Excel), less error prone, and low code to use Power Query. And apparently much quicker. I'm surprised from looking at the rest of people commenting and the number of likes this video received! Clearly people are not familiar with Power Query! Its like using a sledge hammer to crack a nut :)

  • @bicavalgyalvesdesousa2526
    @bicavalgyalvesdesousa25264 жыл бұрын

    Derrick you are super cool thanks for sharing your knowledge

  • @PeladomanMaypa
    @PeladomanMaypa4 жыл бұрын

    Subscribed i dont know anithing of panda, python, automatization, excel but your explaination ets so clear that i want to learn whatever u are saying.

  • @shaziashabbir5813
    @shaziashabbir58132 жыл бұрын

    Thank you for sharing your knowledge

  • @josepaulofernandes4052
    @josepaulofernandes40523 жыл бұрын

    you made very good use of 10 minutes

  • @sherlockian1
    @sherlockian14 жыл бұрын

    Thanks Derrick that was really helpfull

  • @ai.simplified..
    @ai.simplified..4 жыл бұрын

    1st step to analytics,thx

  • @kinglukluk3016
    @kinglukluk30163 жыл бұрын

    This tutorial is very useful... 👍👍👍

  • @yuangchengyuancheng4460
    @yuangchengyuancheng44604 жыл бұрын

    Learn a lot. Thank you.

  • @sirfsimran482
    @sirfsimran4824 жыл бұрын

    Very Useful Buddy Keep It Up !!

  • @hamzaberrada908
    @hamzaberrada9083 жыл бұрын

    Thank you so much Derrick

  • @Muuip
    @Muuip4 жыл бұрын

    Great tutorial! 👍

  • @rasoulkhoshravan5912
    @rasoulkhoshravan59123 жыл бұрын

    I need to practice in order to understand it. But thanks for the lessen. It is informative.

  • @JHatLpool
    @JHatLpool3 жыл бұрын

    To the author. This is a great demo of an important topic. Thumbs up +1 from me.

  • @xaviruiz8345
    @xaviruiz83454 жыл бұрын

    Great Video!! Thank you for sharing your knowledge:)

  • @John5ive
    @John5ive3 жыл бұрын

    A really excellent video!

  • @lqc1014
    @lqc10142 жыл бұрын

    Thanks for your sharing !

  • @smailbelouch390
    @smailbelouch390 Жыл бұрын

    thank you for your explaination.

  • @MrPherez
    @MrPherez4 жыл бұрын

    Nice to do this exercise,quite some good teaching i must admit.

  • @magidz
    @magidz3 жыл бұрын

    great work, thank you!

  • @risausa4796
    @risausa47963 жыл бұрын

    Thanks Derrick!

  • @patrickseeto5241
    @patrickseeto52414 жыл бұрын

    Very useful, thank you

  • @mtgmtgyoutube221
    @mtgmtgyoutube2214 жыл бұрын

    Thanks a lot for the video!!

  • @vijivijay2447
    @vijivijay24474 жыл бұрын

    Good one, bro !!

  • @Shad0wMonkey5
    @Shad0wMonkey54 жыл бұрын

    Let’s gooooo!!!!

  • @DequanHarrison
    @DequanHarrison4 жыл бұрын

    Awesome! Thanks! Would greatly appreciate if you could answer my question in your ""Replace Vlookup with python" video.

  • @alvincly
    @alvincly3 жыл бұрын

    Great work!

  • @habeshadigitalnomad137
    @habeshadigitalnomad1372 жыл бұрын

    Great tutorial! am about to be a regular to your channel.

Келесі