corrects import of own functions that didn't work anymore because of a newer python version.

This commit is contained in:
Michael Beck
2023-08-30 21:45:27 +02:00
parent 1c6d9d5415
commit d8136909c8
3 changed files with 19 additions and 17 deletions

View File

@@ -9,7 +9,8 @@ Created on Mon Jun 26 20:36:43 2023
import pandas as pd
# import pyreadstat
import numpy as np
from funs.ClearDupes import deDupe
import sys
# Seet for training dataset generation
seed = 86431891
@@ -49,6 +50,11 @@ senDatasetPath = wd + di + senDataset
df = pd.read_csv(senCSVPath, dtype=(object))
## Import own functions
funs = wd+"funs"
sys.path.insert(1, funs)
from ClearDupes import deDupe
mixed_columns = df.columns[df.nunique() != len(df)]
print(mixed_columns)