Pārlūkot izejas kodu

get rid of waring in convert types function

tsteuer 4 gadi atpakaļ
vecāks
revīzija
d172e63d35
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      cdplib/db_migration/MigrationCleaning.py

+ 1 - 0
cdplib/db_migration/MigrationCleaning.py

@@ -369,6 +369,7 @@ class MigrationCleaning:
                      
                     # might not be the smoothes solution but it works
                     python_type = str
+                    data = data.copy(deep=True)
                     data[column] = data[column].astype(python_type)
                     python_type = object
                     data[column] = data[column].astype(python_type)