Skip to content
Snippets Groups Projects
Commit 33952a38 authored by David Schäfer's avatar David Schäfer
Browse files

fixed Series vs DataFrame bug

parent 8f676ee6
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# TODO: use the logging module
import logging
import pandas as pd
import numpy as np
from warnings import warn
__plotvars = []
......@@ -24,7 +22,9 @@ def plotHook(data, old, new, varname, do_plot, flag_test, plot_nans=True):
__plotvars.append(varname)
# cannot use getFlags here, because if a flag was set (e.g. with force) the
# flag may be the same, but any additional row (e.g. comment-field) would differ
mask = (old._flags[varname] != new._flags[varname]).any(axis=1)
mask = (old._flags[varname] != new._flags[varname])
if isinstance(mask, pd.DataFrame):
mask = mask.any(axis=1)
_plot(data, new, mask, varname, title=flag_test, plot_nans=plot_nans)
......
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