lisa.stats: Avoid warning triggered by numpy
When giving a Series of NaN to matplotlib for the error bars, it will trigger a warning from numpy deep down the stack. Avoid that by removing the error bar altogether in that case.
GitLab Maintenance scheduled for Thursday, 18th December 2025, from 7:00 AM to 10:00 AM BST. GitLab will be in read-only mode and experience short periods of complete downtime (up to 20 minutes) during this window.
When giving a Series of NaN to matplotlib for the error bars, it will trigger a warning from numpy deep down the stack. Avoid that by removing the error bar altogether in that case.