Open youyuge34 opened 7 years ago
Inside the function dataFromFile(fname) ,the file is opened. But the file close function is not called, which is not safe. Suggest that call the with open...as... instead of open function.
dataFromFile(fname)
with open...as...
open
I have implemented this lift feature with more datasets. See my repo here: https://github.com/zoeleesss/Apriori
lift
Inside the function
dataFromFile(fname)
,the file is opened. But the file close function is not called, which is not safe. Suggest that call thewith open...as...
instead ofopen
function.