Data And Models that Behave Like A Considerate Human
Can a data table or calculation model be designed to be either courteous or rude? They certainly can! Designing for courteous and considerate is a guiding principle for enhancing usefulness of these products –helping customers get insights from their data whether these users are expert or non-expert.
My long-time guiding principle: Data, models and dashboards should behave as would a considerate human. I notice this remains fresh and intuitive based on people immediately nodding their heads in agreement. This is true 20+ years after Cooper et al. published their “designing considerate software” inspiration as a chapter in their renowned book now in its 4th edition, About Face: The Essentials of Interaction Design. Quoting from the 2nd Edition (2003) chapter’s opening paragraph:
If we want users to like our software, we should design it to behave in the same manner as a likeable person. If we want users to be productive with our software, we should design it to behave like a supportive human colleague.
This is sage advice. Cooper et al.’s teaching anticipates current AI software that starts to closely resemble “supportive human colleagues.” That’s a hot topic, but I will focus here on user interface principles for great data products and models that encourage teams to get insights – leading to being able to scale these models and use the fruit from that to grow their business.
A warning at the onset: You can’t unsee this. Software is everywhere. Learning to look through the “considerate design” lens can turn you into an instant critic of the rude little corners of even luxury products’ software:
“My car’s software is being inconsiderate and not deferring to my needs again today. I instructed it yesterday and the day before that I want to use Bluetooth for audio and Apple Carplay for navigation. Why is it blaring FM radio from the speakers and making me thumb through its screens to re-enable Carplay while I’m trying to back it out of the garage?”
Me to anyone sitting in the car with me when I back out of the garage
Cooper et al. share 13 great characteristics. Examples include that considerate software should be deferential meaning it puts your needs first. Considerate software doesn’t burden you with its personal problems. It fails gracefully.
In our context, “deferential” could mean that, if we are designing a cost model that will be used by the General Manager or Owner, he or she should see the overall numbers first. The model should arrive with the detail columns collapsed while still allowing the Finance or Product Design teams to expand things to work with and graph the details. Many “considerate data” and data usability discussions center on how a user can instantly get the data they want in view and get it analyzed starting from a bigger whole –without unnecessary distractions and without being tempted to break the whole set into smaller pieces that limit doing big-picture analysis.
That’s the high-level flavor of the topic. Read on for some additional motivations and examples. Of course, please reach out if we can make your spreadsheets, dashboards and models more courteous. This is a core, guiding principle for solutions we design for clients. The examples below are based on our online course, Digital Transformation with Excel where we teach an extensive module on how to use Excel's features to build considerate spreadsheet models.
Additional Considerate Design Motivation and Examples
Cooper et al. make the software case. That’s great but, for data products and models, users often have additional options for heading down a false path versus for the software design topic where they either enjoy using the software or they don’t. Inconsiderate data designs often cause users to avoid using the data (missed insights!) or to descend into bad habits of creating their own “bad spreadsheets” to try to make sense of things. This leads to missed insights and missed chances to scale and connect with adjacent data.
The following sections relate a few of Cooper’s principles to data and models --using content from the Digital Transformation with Excel course. We apply similar thinking to building models in coded languages like Python.
Considerate data and models keep us informed.
Cooper cites the need for software to avoid “pestering us incessantly about its little fears and triumphs,” but we do want it to inform about important updates and status. I extend this to say that data and models should intuitively inform us about data source and state. In spreadsheets, an example is using Excel’s built-in Calculation style (orange bold text below) for columns containing a consistent formula in all rows. The formatting makes clear that the only [visible] inputs in black text are the Tier, Initiative and Size columns B, C and D. There might be additional input columns lurking in the collapsed sections though.
Keeping the user informed is closely related to doing a good job “curating.” That is an important digital transformation topic too. We strongly encourage use of cell notes in header cells (Row 1) to describe variables and give units. In Python models, this is a reason to have multiple sets of columns in DataFrames –one for the variable names and one for the description and units. We often use automation (an Excel add-in or Python library) to apply and update these comments from a metadata table describing the variables. While not part of keeping the user informed, the model below also illustrates use of macro-refreshable conditional formatting in Columns A to C to avoid the visual distraction of repeated values. This staves off users’ urge to merge cells which would break the table’s structure and eliminate being able to graph the data and to filter and sort the rows.
An Informative Cost Model

To keep users dynamically informed, we use our home grown Excel macro (VBA) user messaging system to issue informative update and error messages. I recently ported this to Python for use with a client’s model that needed to do extensive pre-checks on inputs for problems before running a model. If all goes well, there are no messages, but we included 100+ potential messages for describing problems and how to correct them.

Considerate Models Fail Gracefully
It's sad but true. Models may not always work when run or recalculated. Sometimes this is due to the user making inappropriate inputs, but sometimes unexpected errors occur. “Gracefully” means that, in these situations, the model does its best to help you pick up the pieces and fix the problem. Showing mysterious gobbledygook to the user is not graceful!
Non-Graceful Failures in an Excel VBA Macro and a Python Model

A quick illustration of failing gracefully with spreadsheet models is that lookup formulas should include a message to explain the problem if a lookup fails --something that can easily happen if the lookup table doesn't contain an expected value from the master table doing the lookup. The formulas below show examples of equipping Excel formulas to fail gracefully and avoid the dreaded and difficult-to-understand “N/A” result. Are you not yet familiar with XLOOKUP options and the IFERROR function? Not learning them now would be...inconsiderate.
Excel IFERROR to Advise Correcting Inappropriate Input for Square Root Function
![]()
Excel XLOOKUP Function's if_not_found Argument
![]()

For dynamic errors in coded models, our error handling module allows VBA models to flag specific, problematic cells as in the example below. The “Model contains an error…” dialog alerts the user that there is a problem (so they don't miss this important fact!). The cell comment describes specifically what’s wrong and how to fix a problem like the typo shown.

Considerate Models are Forthcoming
For a data product, the basic task of scrolling through data is a great illustration of “forthcoming.” Scrolling is like breathing, right? But equipping models for this to occur in a considerate way is A BIG DEAL. The potential learning from a model or data goes up if it can be scaled and not broken up into little silos that are hard to cross-compare and graph. It is an immediate discouragement if a user ends up looking at a sea (or even a small lake!) of unidentified rows and columns of numbers like this example. Do you remember what Column F is? You shouldn’t need to!!
What am I looking at????

While the above scroll view is rude, the model can be made forthcoming by using Excel's freeze panes features to anchor the view in the Row 1 column names and “key” columns at the left edge of the data. This makes clear what’s in whatever pane of data is in view. As a bonus for anchoring the view, the key columns at left can be used to filter rows to a desired subset. In consulting projects, When a model outputs data to Excel from another source, we use automation to apply these splits and other formatting –not forcing the user to need to know to do it themselves.
A Forthcoming Model's Scrollable View

These illustrations of considerate software principles give a flavor for how to bring user-interface design excellence to data and models. I recommend that model designers and those designing data analysis study the full, 13-item list of characteristics in Cooper et al.’s book. It has permanently reshaped how I approach design of both basic and advanced “considerate model” elements.
Spreadsheet Models...Why Talk About It Now?
Why talk about spreadsheets in the closing months of 2023? This blog answers that question and serves as an intro to a series on spreadsheets’ role in companies, how to use them with excellence and their role in the general topic of personal digital transformation. The series will include sharing gold standard approaches and open-source links to tools and trainings.
There’s a dirty little secret from consulting and corporate experience. Spreadsheet models are pervasive and powerful in most companies. They do both glamorous and mundane tasks. It’s possible to simultaneously embrace the latest AI tool and modeling software while making amazing and constructive use of great spreadsheet models. For many, cleaning up bad spreadsheet models is a great jumping off point to better efficiency and further advancements with digital transformation in general.
Within companies, Microsoft Excel bridges between technical people and business, project management and finance team members. Even for those working with advanced, R&D or business simulation applications, Excel is great for placing models and data in the hands of non-coders. Well-formatted spreadsheets are also useful as Python model outputs for giving data to non-coders for inspection and study. Google Sheets is in the game too, but Excel and especially the desktop client version of it is still paramount in most companies I encounter. Finally, as a rationale for hitting the spreadsheet topic head on, spreadsheets’ wide-open grid can be used for both good and evil. Looking at this positively, this makes Excel a great teaching tool for the general topic of digital transformation
Ironically, after saying those positive things about spreadsheets, awareness and expertise with them helps put appropriate limits on usage for situations where they are not the best tool. I recently staked out a written position on these limits in writing about The Right Modeling and Analysis Tools for the Job directed at a generalist engineer and scientist technical audience. I am teaching undergraduate engineers from this basis in their senior design course. The blog includes a significant section titled, “Don’t overuse Microsoft Excel.”
No shame if you haven’t thought about these topics directly, but here are subtopics that may help you engage. I will retroactively link to these bullets as I write about them:
- There is a complex brand called Microsoft Excel. Microsoft Teams promotes a watered-down, online version. Which Excel are we talking about as the gold standard for building and using spreadsheet models? (and necessarily treading into the dangerous area of thoughts on Google Sheets versus Excel pros and cons)
- What are the problems with typical spreadsheet models within most companies? I refer to this as anchoring the conversation in “a standard of crap” or SOC. Bad spreadsheets cause problems! Sincere apologies to whoever I lifted the SOC term from. I do not remember, but it’s perfect in this context. For spreadsheets, knowing the SOC means being grounded in the problems caused by poor quality spreadsheets that haunt even great companies.
- What characteristics define a Standard of Excellence (aka SOE) for spreadsheet models and, quite frankly, an SOE for models in any other software? This SOE is great for model authors, but it’s also a checklist that managers can use to survey their current landscape.

- A pivotal topic for desigining great spreadsheet models and models in general: What is the difference between structured data and non-structured (but very necessary!) summaries of data? I use a multi-point definition for what makes data “structured.” Once you know it, you cannot unsee it, and you can apply it to any situation.
- What describes a great user interface for “data”? Most people have not thought deeply about what makes a rows/columns table easy to digest, but we have. This April 2024 blog delves into the topic and in the context of an excellent UI design metaphor of designing "considerate" models that are courteous to their users. One thing that causes people to deviate into SOC practices is desperately and pragmatically trying to find humane ways of simply looking at and working with their data. We have had success creating great user interfaces that discourage needing to do that.
- Along the way, I will share additional general or “Tech Notes” blogs on specific tools and techniques for creating outstanding models. Consulting projects have led to development of general VBA macro tools for authoring and working with Standard of Excellence models. I will share and discuss the role of those tools too.
If you are interested in a quick start on improving your MS Excel mastery, our online Digital Transformation with Excel course is a great place to start. It is a one-workday investment to take but can be broken into shorter sessions with topics covered in short videos that refer to hands-on examples.
Google Colab Tutorial For Running Python Notebooks
This provides a short tutorial for Google Colab as an alternative to Jupyter for running Python code. We show how to bring in, modify and run a Jupyter Notebook from a Github repository.
Colab (short for "Colaboratory") is a Google cloud service. It allows users to write and execute Python code in a web-based environment without needing to install anything locally. Within limits, Colab is free to use, and it interacts with a user’s Google Drive, so Colab notebooks can import additional Python libraries from *.py files. Additionally, the instructions here would allow usage from a Chromebook or on a CPU that does not allow local, laptop file storage. To demonstrate Colab, we will use a case study of running the Jupyter Notebook in this Pandas introduction Github repository called Pandas_Intro_For_Noncoders. This tutorial walks step-by-step through using Colab to run the notebook including modifying the repository notebook to import its data from a repository folder on Google Drive.
Note that several helpful code snippets are available in pasteable format at the bottom of this blog.
Opening Colab and Cloning the Pandas_Intro_For_Noncoders Github Repository
- Open Colab by navigating to https://colab.research.google.com. This opens a blank notebook (e.g. Untitled0.ipynb in the picture below)
- To access your Google drive from the notebook, mount the drive by executing the following to Python statements in a cell.
- Type the statements into a blank cell (Can use +Code button to add cells as needed)
- Run the cell by clicking its run button (black circle with triangle) or by clicking in the cell and typing Shift+Enter

- Optionally, add a new folder (e.g. Projects_Python in example) to your Google Drive by clicking on the three-dot menu next to the folder and choosing New Folder.
- The picture shows how to access your Google Drive’s folder tree.
- It is helpful to also open a browser tab pointing to your Google Drive (https://drive.google.com/

- Use the +Code button at the top of the notebook to add two blank cells
- Enter and run the %cd command to change directory to the desired folder
- Enter and run the !git clone command shown below to clone (e.g make a copy of) the Pandas Intro Github repository directly into the selected Google Drive folder.


Opening and Running the Pandas_Fundamentals.ipynb Notebook in Colab
- The Colab window does not have a way to open the notebook directly. Go to your Google Drive tab and right/control-click on the *.ipynb.
- Choose Open With / Google Colaboratory. This opens the notebook in a separate Colab browser tab
- We are done with the previous Untitled0.ipynb notebook. It is ok to close this browser tab

- Note that you can run notebook cells individually or choose Colab’s Runtime / Run All menu
- Jupyter notebooks such as this one typically point to files assuming a hard drive (local folder) address. This causes a FileNotFound error when the notebook tries to open sample Excel data several cells into the notebook

- To point the Colab notebook to your Google Drive folder, insert cells as shown below to a) mount the drive and b) create a prefix string for the Google Drive path

- Add the dir_google_drive string as a filename prefix in the read_excel statement as shown. This allows the notebook to run from the sample data copy on your Google Drive. Be careful to include “/” delimiters as shown and pay attention to case sensitivity.

That gets the repository’s notebook running in Google Colab with the repository's sample data!
Useful code snippets:
#Mount user's Google Drive without precheck that it is already mounted
from google.colab import drive
drive.mount('content/drive')
#Clone a Github repository as folder to current (Google Drive) working directory
#Use !cd xxx to change directory to desired parent folder
!git clone https://github.com/jlandgre/Python_Colab_Template.git
#Attempt to mount user's Google Drive
is_drive_mounted = os.path.exists('\content\drive')
if not is_drive_mounted:
try:
from google.colab import drive
drive.mount('\content\drive')
except ModuleNotFoundError:
#Add statements for case where notebook is run as local Jupyter
pass
#Set a string prefix for Google Drive directory path
dir_google_drive = '/content/drive/My Drive/Projects_Python/Pandas_Intro_For_Noncoders/'
#Add project's Google Drive path to sys.path to allow importing *.py libraries
dir_libs = dir_google_drive + 'libs'
if dir_libs not in sys.path: sys.path.append(dir_libs)The Right Modeling And Analysis Tools For the Job
Software tools in the data and modeling arena often lead individuals and teams into counterproductive patterns. By being informed and intentional, you can choose the best tool for a particular job. It’s good to recognize that software providers, meaning companies and open-source communities, keep adding features and advocate for using their software broadly. Good for them, but modern tools let you pick the best tool for each part of a bigger job and port data among tools for efficiency and robustness.
As an engineer, data scientist and business generalist, I advocate (and here freely share my opinions about) a software ecosystem that works well in many parts of corporate and university research worlds. It has three primary tools for shaping and sharing data, for creating models and for exploring and visualizing data for decision-making.
- Microsoft Excel® for making data democratically viewable regardless of source, for generating “end of the pipeline” reports and for creating spreadsheet models with calculations for use by non-coders
- Python scripts for data reshaping and for developing coded models and data pipelines (possibly mixing in a little SQL)
- JMP® software for design of experiments (DOE), exploratory analysis and data visualization with accompanying statistical analysis of data
This is solid, but a disclaimer is that it’s possible to be successful with different choices. I recognize that statisticians are going to learn and be fluent with R for example but this requires a lot of expertise and is limited for collaboration inside a company. This also doesn’t preclude using additional tools, which I do in consulting practice. However, considering this core ecosystem can help you think critically about your situation and what’s best for you and your team.
From experience with various organizations, here are two suggestions for fighting the “wrong tool for the job” pressure in corporate and academic cultures, and the discussion below goes into more detail on these:
- Don’t overuse Microsoft Excel where it is not the best tool.
- Don’t overuse Python for exploratory data analysis, visualization, and statistics. Instead use best-in-class JMP® for this
Don't Overuse Microsoft Excel
Not overusing Microsoft Excel takes some discipline. Our online Digital Transformation with Excel (DTE) course teaches responsible use for situations where collaboration and accuracy matter. We teach a surprising combination of long-time, core features. We call that a “hidden layer” that leads to well-curated spreadsheets that are transparent to understand and easy to validate. Excel is wonderful for making data viewable and formatted in intuitive ways. Well-curated spreadsheet models are a way to bring calculations and simulations to a broad range of users. In consulting practice, I use a home-grown, VBA validation suite to ensure that spreadsheet models are correct and stay correct over time. I use DTE Course user interface design principles and this openpyxl Python library to format Python model outputs to put well-formatted spreadsheets into clients’ hands for their review and understanding.
Excel at its Best – Portable-Across-Software Model
with UI Features for Ease of Reviewing and to Highlight Calculations

Although you can buy books on how to do it, Excel is non-ideal for exploratory data analysis or for graphing data except for hard-coded dashboard-like graphs. Additionally, it is wise for Excel experts to be sparing in incorporating advanced, “new Excel” features into models (PowerQuery, PowerPivot with DAX language, Tables, matrix functions etc.). I observe that these are collaboration and robustness killers for most models and 90+% of users --in lieu of simply using “old Excel” to create broadly-understandable spreadsheets.
Controversial with some but avoiding “new Excel” as much as possible also steers experts to use a modular, pipeline architecture where advanced things get done by coded scripts that can be validation-suite verified. Yes, this means that I am lukewarm or even cold on the recent (August 2023) launch of “Excel can do Python” by Microsoft. I gently note that there are pre-existing, robust ways to script Python and even test scripts in Python prior to Microsoft’s “discovery” of Python for Excel. This is a good example of a software company getting marketing mileage out of continually adding features. Be wise to this practice!
Advanced-Feature Hype for Python-In-Excel

Don't Overuse Python
The second, flip-side recommendation is to avoid overuse of Python (or R) for exploratory data analysis, visualization, and statistics. This unfortunately seems to be a hallmark of the Python community. The cost can be seen among data science and analytics experts. Commercial JMP® software is superior in this space for general purposes. It is produced by the venerable and respected SAS Institute. The practical reality is that, within companies, there are wide swaths even within technical organizations where nobody is going to write a script to make a graph let alone fit a three-term regression model to make sense of business or industrial data. Without a tool like JMP, they will either go without analysis or use sub-optimal Excel.
Example JMP Graphical Output With Relevant Statistics For Decision-Making
Graphical Elements and Stats show that Product "b" is Superior and "c" is inferior

Python graphing and stats tools are great in specialized situations, but JMP is useful even for data popping out of Python scripts. JMP is currently on version 17, and its team has long put exceptional quality of thought into how to visualize statistics for decision-making. They have great self-training and webinar resources openly available. JMP is not free. However, it is widely available in companies through negotiated licenses, and it is available under educational discounts in most universities.
Interestingly, since I have long used JMP and started my Python journey more recently, I conducted informal, tabletop “consumer research” at global, scientific Python (SciPy) conferences. I note that many in the Python community are literally unaware of JMP’s existence. When people saw a demo, they were generally amazed by its capabilities and ease of use relative to what they were doing with Python tools –usually visualization tools that lacked direct, statistical support. These JMP demos brought immediate dismay to typical graduate students when they witnessed the ease of use. While not a good solution for everything, JMP analysis can be a workhorse for data-driven decision making in many situations
Making intentional software choices helps avoid getting sucked into doing ineffficient things, and it can break a culture of poor habits. Hopefully this discussion gives you food for thought about your personal or organizational software ecosystem for analysis and modeling.
What Data Delve LLC Does for Clients
My Data Delve LLC business comes down to a simple benefit for people I work with. Namely, I help you and your team be more effective at getting insights from your data to grow your business.
Here are six strategies I use for this. It is a toolbox from which we mutually pick the right tools.
- I help you define what you really want. This is sometimes called “problem definition” but it needs to also include “deliverables definition" to be productive. It is catalyzed by discussing and listening to what you innately know would help your business development, technology development or personal and team efficiency.
- I make your existing data work more efficient. Smart people have ways of getting work done, and there are no successful businesses that don’t, but we have tools and methods for removing the friction and migrating to better places. This can start with advice on and help with “spreadsheet straightening” or involve more complex help with migrating you to efficient “pipelines” to bring together data from multiple sources.
- I build “flight simulators” to let you try out different approaches for growth. These can consist of business simulators, ways of testing technical product formulations and processes or ways of simulating consumer responses. You already have the intelligence, and wisdom to master complex situations. Having low-cost ways to simulate and explore new things can be game changing. The “exploring” may consist of us building tools you can run yourself or you telling us what to try and reporting back to you from coded tools where we are a guide to bridge between your ideas and the potential solutions.
- I help you creatively visualize your data to bring out what it can tell you and how it can guide you. This may involve cross-connections such as reapplying techniques for visualizing complex manufacturing data to shed light on your in-market results with your business or with in-market products.
- I can educate you and your team on best approaches for working with data and the coded solutions for that. We have a suite of online and in-person trainings on software tools from basic to advanced. We are connected to and participants in world class training venues at companies, technical conferences, universities, and online schools. We know how to personalize the training message to you and your company large or small.
- I modularize data and modeling solutions to marry your confidential work with non-confidential open-source software. This avoids needing to start from scratch, and it makes us light on our feet and cost-efficient at getting answers for you. I am active in posting open-source building blocks I create in the Excel/VBA macro and Python language spaces, but we also use free, open-source code packages that are reliable and whose usage is in the 10's of millions. We bring these things to bear against your needs.
Good, Better, Best For Python Projects
I blogged about my observation that Python-coded models and analyses can be grouped into three robustness levels by architecture and macroscopic coding arrangement. Here is a more detailed discussion of the three levels taught also at this training link to a Practical Python for Modelers short course.
The 3-level scale is based on how a project does in three areas: First, is the model or analysis “curated” for the developer and others to understand, inspect and review? Second, are the data transformations and calculations validated with re-runnable, coded tests to build confidence in correctness over the useful life of the model? Finally, are solutions maintainable and extensible by the original developer and colleagues or successors?
Level 1 is what I call the “ad hoc Jupyter notebook approach.” It will garner the highest grade in Data Science coursework and is the “I claim Python expertise on LinkedIn” threshold. Level 1 notebooks will not be questioned for models built for personal usage at a company. It is the go-to for short, linear, one-time analyses and demos. It leaves a lot to be desired beyond that though, and one-time analyses have a funny habit of morphing into permanence.
Level 1 code is rarely well curated and is difficult for anyone else to re-use. From personal experience, its utility breaks down with complexity of data sources and analyses. Level 1 analyses cannot practically be validated with a re-runnable test suite. Usually, Level 1 “validation” consists of printing out and looking visually at a result or performing quick hand calculations: “Yep. That looks plausible. Move on.” That makes things high risk for errors either initially or especially if re-used later.
What I call Level 2 is my go-to approach for client-requested, one-time analyses and for exploratory work. At Level 2, this is still [usually] based in a Jupyter notebook for convenience, but use cases get organized into what I call procedures –groupings of single-action functions that, when executed in order, perform some task or data transformation.
I use the diagram to illustrate a Level 2 and 3 “architecture.” The left block represents a model’s user entering some inputs and executing a use case. The right-most functions are single-action –easy to debug and, at least at Level 3, validated with re-runnable Pytest testing. The “procedures” in the middle are procedural functions that call the elemental ones sequentially to do the work as shown in example code below. It is arbitrary what defines a “procedure,” but they should generally be single-topic and independent (e.g. “transform the ingredients DataFrame into MKS units and add calculated columns.” Or “Create a rows/columns summary of business unit sales and revenue by calendar month”). Delivering the user-facing use case consists of performing 1+ of these more abstract “procedures.” While there are other architectural frameworks out there, I find that this one works well for 90+% of user-facing models and analyses.


The structure makes troubleshooting easy, and it makes it possible to maintain and extend the model by refactoring individual functions, splicing new functions into a procedure or by adding new procedure functions and their right-side collections of elemental ones. At Level 3, all such upgrades can come with re-running the test suite to ensure nothing got broken.
Level 3 is what I call Tuhdoop –referring to a combination of Test-Driven Design (TDD) and Object Oriented Programming (OOP). I coined the term and wrote about Tuhdoop and its synergistic benefits in this Github tutorial. I notice that I can create Level 3 code as efficiently as Level 2 and as efficiently as Level 1 if I factor in rework and debugging time. I am gradually trending to a hybrid work process of developing at Level 2 and then porting the code to Level 3 as appropriate. A distinction between Level 2 and 3 is that Level 3 is object-oriented –often consisting of a single Class per use case or sometimes a Class for the use case that relies on other helper Classes.
To go with the architecture diagram, this screen picture shows typical Level 3 code where the application code (left side) and test code (right side) mirror each other and are organized by procedure. Well-organized code is self-documenting. The testing also forms part of the documentation by making it easy to probe and learn about what individual functions are doing.

As a closing aside, I found that the TDD theme in Level 3 and using ChatGPT to spit out function skeletons has influenced me personally to improve at planning the procedures and elemental functions and in prewriting the tests. I experiment currently with using ChatGPT with prompts like, “For the above rows and columns table listing Python functions in Column A, write the skeleton of the Python function with its arguments (Column B) and write a Pytest test function to verify that it generates the expected output.” I am still undecided whether this will ultimately be advantageous versus writing my own Python helper script to do this systematically. This seems like it might be easier than trying to cajole ChatGPT to do the same thing repeatably. Regardless of how that turns out, credit to GPT-4 for the inspiration.
Robust Models and Analyses – Defining Good (or Meh!), Better, Best
Python is everywhere these days. Universities crank out Data Science majors and minors. Middle school kids are learning the language. There is a groundswell of coding as a generic skill for non-software professionals --engineering, scientific, business, journalism and even liberal arts disciplines. That’s great, but, when it comes to building models and doing important analyses with the language, I observe three distinct levels of robustness. I group projects into these levels based on how they are organized (aka “architected”) and whether they come with re-runnable testing. That is a standard in the software industry for good reason. If you are learning Python, you can use my distinctions as a roadmap and ensure you have the top two levels in your repertoire. If you are a manager of people who create data products and models for decision making (or if you hire consultants!), it should be a priority for these analyses to be curated, validated and maintainable/extensible. The quality of these three items varies wildly and honestly tends towards the low end of the scale.

I recently created a workshop training called Practical Python for Modelers for an audience of R&D engineers and scientists ranging from Python beginners to computer modeling experts. I am reapplying it in collaboration with Dr. Will Hartt and colleagues at University of Delaware Chemical Engineering. We seek to educate highly technical undergrad and graduate students for whom data science is outside their immediate domain. The slides and training data are available at the link.
A followup Tech Notes blog goes into more detail about what distinguishes the three levels of Python styles/architectures. Here are definitions of the three robustness objectives:
- Robust models and analyses are curated. Another knowledgeable human can look at the files and not only repeat the analysis but extend it without the author needing to be present.
- Robust models and analyses are validated. They come with re-runnable test cases consisting of mocked up data proving correctness of calculations, data cleaning steps and output generation.
- Robust models are maintainable and extensible. They are written in a modular way, so that they are easy to build on and easy to reapply.
Look for these things in what you generate. If the work is done externally for you, ask consultants to write them into proposal deliverables along with the direct, decision-making models and analyses! You will not be sorry.
Our New Online Course: Digital Transformation with Excel
This announces a foray into online training with launch of our Digital Transformation with Excel or DTE course. I partnered with Toronto-based Predictum Consulting LLC and CEO Wayne Levin on this. It brings together my data and modeling mentoring insights from decades of P&G R&D work as well as from recent consulting work. DTE recognizes the pervasiveness and unabashed usefulness of Microsoft Excel in organizations. The result is something I’m proud of and something that is uniquely beneficial among the soup of trainings out there.

Please reach out on LinkedIn or Twitter (@data_delve or @Predictum_Inc) if you want to discuss setting up a preview call, live training options or group discounts. DTE's target audience is broad. I hope a wide range of folks will experience it:
- Modeling experts, Finance experts and Analysts can expect to learn a rather surprising “hidden layer” of features for authoring models in a way that is relatable to less technical customers. This audience bullet point is my tribe too. Elegant use of Excel connects models to the business in a relevant way since the downstream world runs on it. Learning how to structure and curate data and models can often be new even to many experts versus a standard practice of constructing non-structured, spreadsheet model “dashboards.”
- Multi-functional leaders can expect to gain personal, working-with-data skills but also to get cultural insights on what to emphasize and encourage as “this is how we do things around here” for digital transformation
- Administrators, project managers and anyone else who works collaboratively on teams can expect to learn skills for combining “business process” data in new ways that calm the constant barrage of chat messages and emails on topics ranging from budget questions to project lists, product designs, project status and so on.
DTE is more than just a collection of skill tidbits such as you can find for free on YouTube. It is built on four, higher-level themes that, when combined together, create data and modeling magic:
- How to be fluent to work well with large and small data sets and models (Example skill: 50+% speedup via practical use of built-in shortcuts for navigation and for issuing commands)
- How to structure data for extensibility and portability (Example skills: How to include “keys” in data for filtering and sorting; building multi-table models with the XLOOKUP function)
- How to curate data to maximize personal and collaborator useful life of data (Example skill: Cell and Range naming to curate formulas)
- Designing excellent spreadsheet user interfaces to encourage use of data and calculation models for collaboration (Example skills: Column Outlines and unique Conditional Formatting techniques for working comfortably with large models)

Besides Excel’s pervasiveness, I will add an additional word on “why Excel?” as a training topic in 2022. We know that company software ecosystems are complex. People work with multiple tools as I do in my consulting practice. However, Excel’s wide-open, grid structure makes it ideal for teaching how to make data and models collaborative and portable across software. It is also true that Excel can be used for both the good of constructing great models or for the evil of making hard-to-decipher, spreadsheet scraps that die on individuals’ hard drives. To bring about true digital transformation, we teach how to bend towards the good and how to steer clear of spreadsheet evil.
DTE practical details:
- It consists of 3 hours of short videos combined with case study examples. When taught live, it is a “one-day” course.
- DTE is cross-platform for Mac and Windows versions. We discuss relative strengths and weaknesses of Excel variants but make the teaching fluid and relevant regardless of preferred operating system
- DTE is hosted on Predictum’s Thinkific “academy." Here is a link to Predictum’s LinkedIn announcement of DTE and intro of me as lead trainer.
What Has Data Delve Been Up to in 2022?
With consulting work, it is easy to just keep your head down and work on client projects. This post is a lifting of my head for a 2022 review. At top level, I help people build models and gain data insights to grow their business. This means defining problems in a rich and actionable way and then turning them into coded models and visualizations to uncover hidden gems for decisions and growth. Sometimes these solutions are prototypes that lead to more permanent solutions. Sometimes they are themselves the answer.
Here is a bullet point listing of what we were up to in 2022. A paragraph on each below gives more details:
- Business and manufacturing simulation for a chemical industry client
- Python-coded data solutions for an e-Commerce appliance product that is online-connected through AWS
- Troubleshooting the interplay of a client's raw materials and manufacturing process to resolve quality problems
- A foray into online training with launch of our Digital Transformation with Excel course on mastering Microsoft Excel in organizations
- Building a “control panel” front-end user interface for a complex, process and formula simulation model for a CPG product
- Notes on the the Global SciPy conference I attended this Summer in Austin
- Overview of our software toolbox
A current project is helping a client’s $US 150+ MM sales B2B chemical business. I work with their business and operations leadership to build a business forecasting/simulation model. They know there are nuggets there that can help but want to translate their intuition into simulations guiding what to emphasize in the business and operation. The business simulator allows them to vary product mix and manufacturing capacity and look at how to grow sales and profit. That links to a capacity and cost model for their two plants. The latter predicts production volume and cost for their batch-making operation.
Work with a long-term client uses Python libraries I wrote and continue developing to connect their AWS, eCommerce and fulfillment vendor data from an internet-connected appliance they sell online. The data foundation is then a basis to explore and answer questions with creative visualizations and models. This helps the team understand the in-market dynamics and consumer experiences with the product. From “wish for” learning questions they provide, we define requirements and then develop code for both exploring those questions and keeping ongoing track of consumer usage of the fleet of in-market devices.
For another current client, I am working with their engineering and manufacturing team to troubleshoot their combined raw material supply and chemically-based manufacturing process. We seek to eliminate intermittent off-quality product that causes expensive customer issues. We use my 5-step, complex troubleshooting methodology as a roadmap to collaboratively define the problem, engage a broad range of expertise, brainstorm a learning plan and execute experiments to create robust solutions.
On the online training front, I’m partnered with Toronto-based Predictum Consulting LLC and its CEO, Wayne Levin. In October 2022, we launched an online course called Digital Transformation with Excel or DTE. It brings together training and mentoring insights from P&G days and recent consulting projects. DTE recognizes the pervasiveness and unabashed usefulness of Microsoft Excel in companies. It teaches mastery in context of how to structure and curate data and models. This includes how to build great user interfaces and how to make data portable and extensible for collaboration.
A recently-completed, two-year project involved building an extensive Excel/VBA “control panel” to feed a simulation model for a CPG brand’s batch-made product. This application lets users import or enter the product formulation and process setup as inputs. It then generates JSON input decks to feed chemical process simulation software. The VBA work involved envisioning a user interface and behind-the-scenes tracking/wayfinding for this work process –making it possible for users to experiment with varying the formula and process in ways that honor plant and ingredient constraints. Because of the complexity of the model, I wrote and utilized an open-source VBA validation suite to continuously run dozens of validation cases. This helps ensure that VBA code changes do not break previous work.
While not a project, I attended the Global SciPy conference this Summer in Austin. I learned a lot and made numerous contacts for the future –despite coming home with a mild case of Covid. This community ranges from astronomers to nuclear physics experts, so it is an extreme intellectual challenge for this chemical engineer. I took tutorials to build my expertise in working with geospatial and map data in Python. I networked with a lot of interesting folks and formed some lasting collaborations. In addition to the scientific and upstream R&D industry worlds, SciPy has significant attendance by the financial analysis community. However, it is almost absent any downstream industrial viewpoints such as mine. This is perhaps understandable because this is not SciPy's focus, but this also speaks to the state of Python tools for experimental design and quality control. In my opinion, this also causes SciPy to have a siloed focus on Python tools wielded by upstream corporate people and by academics --even when Python is not the optimal tool for the job.
Finally, my software toolbox continues to expand and is pragmatic. It uses a “right tool for the job" mentality. To start, I develop coded solutions in Python and its Pandas, Numpy and visualization libraries. This Github repository (see tutorial.md there) is a code sample and discusses the under-publicized synergy between two common Python practices, TDD and OOP (aka Test Driven code Design and Object Oriented Programming or “Tuhdoop” as I call the combo). I use the Python Scikit-learn library for advanced modeling. In addition to Python, I use JMP Statistical Discovery software (by SAS Institute) for exploratory data analysis, modeling, multivariate analysis, quality analysis, stats and visualization. I use Microsoft Excel/VBA to build simulation models that can be used by non-coding clients. As discussed above, Excel is also useful for building user interfaces for models that link to other applications. I use PowerBI to create and publish dashboards for clients.
Here's to an interesting 2023 of helping clients and continuing to grow in bringing solutions!
A “Data Principle” for Digital Transformation
Whether you are a highly technical computer modeler, project manager, leader, or admin, you can be battered by corporate software and by the communication pattern author Cal Newport calls “hyperactive hive mind” in his brilliant book A World Without Email. This best-selling business author and Georgetown Computer Science professor shares four “Principles” for moving beyond an inbox-driven corporate culture. These resonate and create a roadmap for unlocking productivity. As a “data guy” though, this blog explores my contention that he stopped short of adding a critical, fifth “Data Principle” to his four. I am currently working with a consulting partner on an online training in this Data Principle arena. Reach out if you want more info. We have reached the “training is deliverable live” stage of the course production process.
Banishing the inbox-driven approach is about gaining personal and team productivity and about creating delightful work culture. That drives business success. I cannot help wondering whether Cal Newport was surveilling my teams as he describes negative aspects in even highly successful companies. His point is that we have lived in this long enough to see the future. We are at a tipping point to migrate to a better place and that there is unbelievable upside to unlocking this.
What I call the “Data Principle” is democratic across levels and functions. It has at least two parts. Part One is being knowledgeable about how “structure” and “curate” data and calculation models. My case study experience gives me a lot of confidence with speaking to this. Of course, your goal of arming with knowledge is to take action to shape how you and your team actually work. Doing this makes data and models portable and collaborative across software platforms. It also armors you for whatever comes in the form of new software, databases and open-source tools.
Data Principle Part Two is learning how to be a discerning user of the messy corporate software mayhem we all live in these days. The mayhem is not going away. The call to action is to take inventory of where your and your team’s critical data and models reside and to be intentional about making work practice choices that optimize for productivity. Are your critical data and models stored in a single location accessible to those with need? Can “data” only be gotten by pinging someone else by email or chat? Most importantly, does software honor peoples’ time and productivity, or is usability driven by Legal, HR and Security concerns? If so, are there ways (e.g. simple choices) for honoring those important concerns while making you and your team more productive?
A specific example of Part 2 tension these days is cloud storage of files. In any company, in their innermost, corporate souls, your HR, Legal, and Info Security functions (that need to check off on the licensing contract with Microsoft, Google et al.), do not want thousands of highly sensitive files on everyone’s laptops. They just don’t. There are obvious situations where it can be problematic. However, you want to have your slides, spreadsheet, or document for that meeting in 5 minutes. Also, you sometimes stay in hotels with crappy internet. In an upcoming post, I will explore that tension further with a case study and discuss how to optimize.








