Browse Source

Change log print

ogert 5 years ago
parent
commit
fc81e099ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cdplib/FlattenData.py

+ 1 - 1
cdplib/FlattenData.py

@@ -31,7 +31,7 @@ class FlattenData():
         start = time.time()
         if type(data) is pd.DataFrame:
             return_data = self.flatten_dataframe(data)
-            self._log.info(('Data has been flattened, created {} columns in {} seconds').format(len(return_data.index), time.time()-start))
+            self._log.info(('Data has been flattened, created {} columns in {} seconds').format(len(return_data.columns)- len(return_data.columns), time.time()-start))
             return return_data
         if type(data) is dict:
             return self.flatten_dict(data)