Skip to content
Snippets Groups Projects
Commit 2c44a804 authored by Florian Grosse's avatar Florian Grosse
Browse files

See issue #1

`labeled(self)` may crash when the whole "Z" column is neither empty nor of type String (i.e. a number). Added prior casting.
parent 80b92eed
No related branches found
No related tags found
2 merge requests!3Resolve "Crash in a test file with non-empty Z column" in patch branch,!2Resolve "Crash in a test file with non-empty Z column"
......@@ -297,7 +297,7 @@ class PandasBlock:
True, if labeled.
"""
values_empty = self.df["Z"].iloc[0].strip('""') == ''
values_empty = str(self.df["Z"].iloc[0])strip('""') == ''
values_unique = self.df["Z"].nunique() == 1
if values_empty and values_unique:
return False
......
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