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

added data input validity check to assure string columns

parent b564637c
No related branches found
No related tags found
2 merge requests!193Release 1.4,!188Release 1.4
...@@ -60,6 +60,9 @@ def _prepInput(flagger, data, flags): ...@@ -60,6 +60,9 @@ def _prepInput(flagger, data, flags):
raise TypeError("data should not use MultiIndex") raise TypeError("data should not use MultiIndex")
data = dios.to_dios(data) data = dios.to_dios(data)
if not hasattr(data.columns, "str"):
raise TypeError("expected dataframe columns of type string")
if not isinstance(flagger, BaseFlagger): if not isinstance(flagger, BaseFlagger):
# NOTE: we should generate that list automatically, # NOTE: we should generate that list automatically,
# it won't ever be complete otherwise # it won't ever be complete otherwise
......
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