sars_tutorial
sars_tutorial copied to clipboard
but only binder gives error 07_KNN.ipynb
really great code
but only binder gives error for 07_KNN.ipynb

"" /srv/conda/envs/notebook/lib/python3.7/site-packages/pandas/io/parsers.py in init(self, src, **kwds) 1706 kwds['usecols'] = self.usecols 1707 -> 1708 self._reader = parsers.TextReader(src, **kwds) 1709 1710 passed_names = self.names is None
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.cinit()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source()
FileNotFoundError: File b'datasets/sessions_sample_10.csv' does not exist ''''
Hi @Sandy4321 , have tried to uncomment the line the unzips the dataset in the previous cell?
# unzip the dataset, if you haven't already done it
# ! unzip datasets/sessions..zip -d datasets
great now I do have this il\data_utils.py:24: FutureWarning: using a dict on a Series for aggregation is deprecated and will be removed in a future version. Use named aggregation instead.
>>> grouper.agg(name_1=func_1, name_2=func_2)
aggregated = groups['item_id'].agg({'sequence': lambda x: list(map(str, x))})
though I get this

is it correct?
That looks right. As for the warning above, it might be due to the newest versions of pandas, but it should be easy to fix.