|
@@ -310,8 +310,12 @@ class DataFrameToCollection():
|
|
entries are arbitrary objects
|
|
entries are arbitrary objects
|
|
(pandas unique() method does not work if entries are of complex types)
|
|
(pandas unique() method does not work if entries are of complex types)
|
|
'''
|
|
'''
|
|
|
|
+
|
|
uniques = self._make_list_of_distinct(x)
|
|
uniques = self._make_list_of_distinct(x)
|
|
- return uniques[0]
|
|
|
|
|
|
+ if len(uniques) > 0:
|
|
|
|
+ return uniques[0]
|
|
|
|
+ else:
|
|
|
|
+ return None
|
|
|
|
|
|
def _unroll_nested_names(self, names: list) -> list:
|
|
def _unroll_nested_names(self, names: list) -> list:
|
|
'''
|
|
'''
|