pratikrelekar / NielsenDSRS

Python library utilising power of Dask for working with Kilts - Nielsen Retail Scanner Data for academic research
MIT License
1 stars 1 forks source link

init the NielsenReader class with a string not a Path object #1

Open mgckind opened 2 months ago

mgckind commented 2 months ago

Currently the class takes a Path object instead of a string

import pathlib as path
from NielsenDSRS import NielsenRetail
path_file = path.Path('path_string')
NR = NielsenRetail(path_file) 

The class should be direct and just 2 lines:

from NielsenDSRS import NielsenRetail
NR = NielsenRetail(path_string) # path being a string
mgckind commented 2 months ago

Instead of initiating the class with 4 lines, it should be only 2 lines as shown