瀏覽代碼

Add functionality to ignore certain labels from being flattend

ogert 4 年之前
父節點
當前提交
107eb98a52
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cdplib/FlattenData.py

+ 1 - 1
cdplib/FlattenData.py

@@ -175,7 +175,7 @@ class FlattenData():
 
         return dictionary
 
-    def flatten_if_not_flat(self, data: pd.DataFrame):
+    def flatten_if_not_flat(self, data: pd.DataFrame, labels_to_ignore: list = None):
 
         for data_type in data.dtypes:
                 if data_type == object: