
Explore how the academy teaches automating Excel with Python, focusing on data science, plotting with matplotlib, and C++ libraries like Boost, with courses in object oriented programming and databases.
Udemy Course link: https://www.udemy.com/course/automate-excel-using-python-xlwings-series-2/
Course Outline on Youtube: https://www.youtube.com/watch?v=jmTSLjWCJ7U
Tools
Video
ch_0_tut_1_tools.mp4
Description
* Anaconda
- Setup: https://www.anaconda.com/download/
* Sublime Text 3
- Setup: https://www.sublimetext.com/
- Packages: https://packagecontrol.io/
- More: https://github.com/abhi3700/my_coding_toolkit/blob/master/sublime_all.md
Tools
Video
ch_0_tut_1_tools.mp4
Description
* Anaconda
- Setup: https://www.anaconda.com/download/
* Sublime Text 3
- Setup: https://www.sublimetext.com/
- Packages: https://packagecontrol.io/
- More: https://github.com/abhi3700/my_coding_toolkit/blob/master/sublime_all.md
Python
Video
ch_0_tut_2_python.mp4
Code
ch_0_tut_2_python.py
Learn pandas fundamentals in Python: install pandas, import as pd, work with a data frame containing country and population, and filter to display China’s population and last five rows.
Xlwings
Steps
1. Open "Command Prompt", type `conda list`
2. If `xlwings` is not installed, then install using this - `conda install -c anaconda xlwings`
3. Install **addin** in Excel using this - `xlwings addin install` on the terminal.
4. Choose a directory and open a project there: `xlwings quickstart demo`
5. macro settings in the MS Excel
- enable <kbd>Enable all macros</kbd> button in the `Trust Center >> Macro Settings >> Macro Settings`
- enable <kbd>Trust access to the VBA project object model</kbd> button in the `Trust Center >> Macro Settings >> Developer Macro Settings`
5. Print "Hello Xlwings!"
6. Add a UDF - `sumtwice()`
References
* Official website - https://www.xlwings.org/
* Documentation - https://docs.xlwings.org/en/stable/
* More - https://github.com/abhi3700/My_learning-Python/blob/master/xlwings_commands.md
This infographic presents a semiconductor industry case study, visualizing equipment data, particle contamination metrics (delta, BCD, delta sigma), and control limits (UCL/LCL) to monitor processes.
View and prepare Excel data for analysis with xlwings in Python, loading the table into a dataframe and plotting date on the x-axis with density and UCL markers.
Customize the default Excel project by preparing a macro-ready setup and defining functions. Use spaces for Python indentation and add a button via the developer tab to run the module.
Learn to define and reference sheets in an xlwings workbook, using wb.sheets and named sheet variables to prepare data for plotting and later adding a picture.
Create figures and axes in Python, plot a date-based Delta City barometer, and format the x-axis with weekly ticks, rotated labels, and a dotted line with 15 percent transparency.
Create a custom legend for a 2d plot in xlwings, configuring colors, line width, and font size, and place the legend at the upper right using the legend function.
View data: copy to a new sheet, create the first sheet, build a data frame, and log and segregate data across columns for analysis.
Prepare code by adding a new named sheet, inserting a button, and copying two lines, then rename modules and load the code to execute and view the output.
Define and name sheets in Xlwings workflow, assign the first sheet as data, and reference sheets via variables to automate Excel tasks with Python.
Learn to plot time-series data with dates in Python, configure figure size, axes, date formats, major ticks, grid, transparency, and legends using plotting libraries.
Master plotting in xlwings by building and refining a new chart, dragging data down, zooming out, aligning dates, and saving the workbook to finalize the plot.
This course teaches how to automate Industry-level datasets maintained in Excel sheets using Python programming language.
MS Excel is a very helpful tool for record-keeping. But the language that comes by default for macro is VBA, which is dated. And in the field of Data Analysis, Python has a lot of interesting packages which makes a job easy. Package like xlwings links any Excel with Python macros. Packages like Pandas, takes data into tabular format and also has customized filtering of rows or columns for complex data analysis. Packages like Matplotlib, Plotly enables to create different plots - line plot, Scatter plot, Heat map for finding the correlation b/w different parameters.
In the Series, 2 Case studies has been picked from Industry process line. And correspondingly, Python macros are created to:
reduce time in analysis
enable customization using python packages
reduce macros code lines in VBA codebase.
create customized User-defined modules by python functions.
The Series-2 is also available now in the Instructor's profile.