|
@@ -274,16 +274,18 @@ class DataFrameToCollection():
|
|
|
|
|
|
|
|
|
|
if x.size == 1:
|
|
if x.size == 1:
|
|
- return_value = x.tolist()
|
|
|
|
|
|
+ uniques = x.tolist()
|
|
|
|
+ '''
|
|
if return_value == [{}]:
|
|
if return_value == [{}]:
|
|
return []
|
|
return []
|
|
return return_value
|
|
return return_value
|
|
-
|
|
|
|
|
|
+ '''
|
|
|
|
+ else:
|
|
|
|
|
|
- uniques = pd.DataFrame({"temp": x.values})\
|
|
|
|
- .assign(temp_str=lambda y: y["temp"].astype(np.str))\
|
|
|
|
- .drop_duplicates(subset=["temp_str"])\
|
|
|
|
- .drop("temp_str", axis=1).iloc[:, 0].tolist()
|
|
|
|
|
|
+ uniques = pd.DataFrame({"temp": x.values})\
|
|
|
|
+ .assign(temp_str=lambda y: y["temp"].astype(np.str))\
|
|
|
|
+ .drop_duplicates(subset=["temp_str"])\
|
|
|
|
+ .drop("temp_str", axis=1).iloc[:, 0].tolist()
|
|
|
|
|
|
|
|
|
|
def is_empty(y):
|
|
def is_empty(y):
|