Skip to content

Instantly share code, notes, and snippets.

@rsalaza4
Created May 10, 2022 16:47
Show Gist options
  • Select an option

  • Save rsalaza4/b5e4b8f776d63a1e8f753613637c09d3 to your computer and use it in GitHub Desktop.

Select an option

Save rsalaza4/b5e4b8f776d63a1e8f753613637c09d3 to your computer and use it in GitHub Desktop.
# Rule 1 - Lower
for x in df_grouped['x_bar']:
if x < df_grouped['LCL'][1]:
R1_lower.append(False)
else:
R1_lower.append(True)
# Rule 1 - Upper
for x in df_grouped['x_bar']:
if x > df_grouped['UCL'][1]:
R1_upper.append(False)
else:
R1_upper.append(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment