sars_tutorial icon indicating copy to clipboard operation
sars_tutorial copied to clipboard

but only binder gives error 07_KNN.ipynb

Open Sandy4321 opened this issue 5 years ago • 4 comments

really great code but only binder gives error for 07_KNN.ipynb image

"" /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 ''''

Sandy4321 avatar Jun 22 '20 22:06 Sandy4321

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

mquad avatar Jul 31 '20 08:07 mquad

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))})

Sandy4321 avatar Aug 02 '20 18:08 Sandy4321

though I get this image

is it correct?

Sandy4321 avatar Aug 02 '20 19:08 Sandy4321

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.

mquad avatar Aug 05 '20 13:08 mquad