Super easy to do with JMP. When you're ready for a treat let someone know.
Use your python query, save the resulting table as a CSV
Open the data frame in JMP
Tables>Split by test method to a wide format.
one run per row, one column per variable.
Use the Analysis>Quality>Process Capability launch platform.
add all your variable columns
Use the dialog to load specs from a separate table.
This analysis platform generates all the figures
https://www.jmp.com/content/dam/jmp/documents/en/academic/learning-library/10-capability-analysis.pd...
JMP Systems Engineer, Health and Life Sciences (Pharma)