Browse Source

corrected small bug in CleaningUtils

tanja 5 years ago
parent
commit
17e4d68b1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cdplib/utils/CleaningUtils.py

+ 1 - 1
cdplib/utils/CleaningUtils.py

@@ -100,7 +100,7 @@ class CleaningUtils:
             df_melted = []
 
             for dup_var in dup_vars:
-                dup_var_melted = pd.melt(frame=df, id_vars=id_vars, value_vars=[dup_vars], value_name=dup_var)\
+                dup_var_melted = pd.melt(frame=df, id_vars=id_vars, value_vars=[dup_var], value_name=dup_var)\
                                    .set_index(id_vars)[dup_var]
 
                 df_melted.append(dup_var_melted)