|
@@ -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)
|