PYSPC - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: PYSPC (/thread-11369.html) |
PYSPC - ksasi2k3 - Jul-05-2018 Hi, I am trying to create control chart (P chart) using Pyspc module. I am able to create it for a sample data but when connected with DB I facing issue and unable to generate chart. The code I am using is: <Python> from pyspc import * a= spc(DPPM) + p() a + rules() <Pyhton> I want to know how we can pass parameter in this module. Sample Data: ID --> Supplier-->Month-->Sample_Size-->Defective 21 --> Supplier1 -->201906 -->10440 --> 4 33 --> Supplier1 -->201907 -->14490 --> 6 44 --> Supplier2 -->201906 -->4199 --> 2 21 --> Supplier3 -->201906 -->7356 --> 1 21 --> Supplier1 -->201908 -->1487 --> 10 71 --> Supplier2 -->201910 -->980 --> 3 81 --> Supplier1 -->201910 -->12056 --> 5 35 --> Supplier1 -->202004 -->1177 --> 12 18 --> Supplier2 -->202001 -->16234 --> 1 123 -->Supplier3 -->201908 -->3800 --> 4 213 -->Supplier1 -->201912 -->15 --> 0 22 --> Supplier2 -->202001 -->6 --> 0 RE: PYSPC - Larz60+ - Jul-05-2018 Have you looked at the example code here? https://github.com/carlosqsilva/pyspc/blob/master/pyspc_gui.py RE: PYSPC - ksasi2k3 - Jul-06-2018 Hi, First of all,Thank you for your response. yeah I have already seen this and also I used Carlosqsilva sample code from github to derive this control chart in Python, I want to know how we can pass parameter for P chart. I want to display month in x axis and want to predict DPPM from data((units failed/units built)*1000000). I want to know how we can pass this using PYSPC module. |