Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PYSPC
#1
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
Reply
#2
Have you looked at the example code here? https://github.com/carlosqsilva/pyspc/bl...spc_gui.py
Reply
#3
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020