
Explore an experienced coder's journey from Android apps to iOS development and data science. Discover how automation with Python supports trading, crypto insights, and machine learning.
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.
Discover the course outline for automating excel with python using xlwings, covering two case studies on loading and filtering data, and creating date axis vs deltas plots with dynamic outputs.
Udemy Course link: https://udemy-test.fastpass-panel.ir/course/automate-excel-using-python-xlwings-series-2/
Course Outline on Youtube: https://www.youtube.com/watch?v=jmTSLjWCJ7U
This lecture describes using a communication platform for collaboration, handling feature requests via GitHub issues, and how membership and a Telegram channel enable ongoing discussion.
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.
Learn to view code history in a private GitHub repository, become a collaborator, and inspect revisions of case study files and sheets for the Xlwings Excel automation series.
Learn to import pandas, load data from Sheet_1 into a DataFrame, clean and filter the data, and write results to Sheet_2 with proper indexing and headers.
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.
Learn to show and customize an xlwings plot by extracting date for the x-axis, Delta City for the y-axis, styling lines and markers, and illustrating USL and UCL on Excel.
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.
Explore a two-chamber case study on a single sheet and visualize a flowchart. Extract chamber 1 and chamber 2 data to plot delta values against date in separate data frames.
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.
Fetch city sheet data into a dataframe, then filter for two cases and build separate dataframes. Create plots from each dataframe with end date on the x-axis.
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.
Shows the second plot for a timber beam, detailing figure and axis setup, x/y axis formatting, label rotation, grid, and legend for Delta CFP and Delta Sigma.
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.
Compare case study 1 and 2 to show how two chambers alter data layout and filtering in Excel, and relate this to automation with Python and macros.
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.