Skip to content
Snippets Groups Projects
Commit 96d42d97 authored by Coda Phillips's avatar Coda Phillips
Browse files

Don't crash when the variable is missing

parent 80145c98
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,8 @@ def save_plot(filename):
def plot_variable_qc(frame, loc, filename=None):
qc_loc = 'qc_' + loc
if qc_loc not in frame.columns:
return
if sum(frame[qc_loc]) > 0:
fig = plt.figure(figsize=(50,5))
plot_outliers(frame, frame[qc_loc] == 0, loc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment