浏览代码

get rid of waring in convert types function

tsteuer 4 年之前
父节点
当前提交
d172e63d35
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)