Explorar o código

get rid of waring in convert types function

tsteuer %!s(int64=4) %!d(string=hai) anos
pai
achega
d172e63d35
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)