add comfortable plotting method to saqc object
I would like to suggest a plotting method for the saqc object. (Better to say: i would like to just have it....)
Something like:
saqc.plot(data, field, flags)
Background:
Literally always when i work on an a QC project with saqc
, i have to include a plotting routine for the saqc.getResults
output - and this routine always looks the same way nearly. Its something like:
f = flagger.isFlagged(field)
f = data[field][f]
data[field].dropna().plot()
plt.scatter(f.values, f.index, color='r')
plt.title(field)
This gives an easy to read plot of the variable with red dots indicating flagged values. Its basic but sufficient in most cases. Would be so handy to just have this as a saqc method available.
I know - plotting is already possible via the plotting keyword - but its not the same thing. I usually want to produce the results of my saqc
set up - and than - after that, i play/inspect around with it, looking at different variables, making small changes, rerunning, looking again - and so on. The runtime plotting option is more for inspection of what happens while the pipeline runs, which i find more comfortable to do via breakpoints (since i can interact than). When the output is generated, there is no handy tool available to just briefly check and get an impression of the results.