Please assist, I am fairy new to python and pandas trying to run a pandas dedupe code and getting this error:
with os.scandir(path) as scandir_it:
NotADirectoryError: [WinError 267] The directory name is invalid:
NotADirectoryError: [WinError 267] The directory name is invalid: 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpxxyzspkw\\blocks.db'
I tried to change my working directory with os.setwd() but still get the error, I tried to look for the solution on youtube and follow other questions regarding the "NotADirectoryError" I still had no luck, please help if you can thanks.
my code is as follows
df = pandas_dedupe.dedupe_dataframe(df, ["ChildName", "childDOB", "deathDate", "Name",
"Location"])
print(df)