Przeglądaj źródła

Trying to speed up convert mongo into dataframe

ogert 4 lat temu
rodzic
commit
0683e58d87
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      cdplib/db_handlers/MongodbHandler.py

+ 1 - 1
cdplib/db_handlers/MongodbHandler.py

@@ -326,7 +326,7 @@ class MongodbHandler:
         return_df = pd.concat(frames, axis=0, sort=False)
 
         if index is not None:
-                return_df.set_index(index, inplace=True)
+            return_df.set_index(index, inplace=True)
 
         self._log.info(('{} Rows were fetched from {}. DataFrame conversion is done, took {} seconds').format(len(return_df.index), collection_name if collection_name is not None else 'the database', time.time()-start_time))