Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

but only binder gives error 07_KNN.ipynb #7

Open
Sandy4321 opened this issue Jun 22, 2020 · 4 comments
Open

but only binder gives error 07_KNN.ipynb #7

Sandy4321 opened this issue Jun 22, 2020 · 4 comments

Comments

@Sandy4321
Copy link

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

@mquad
Copy link
Owner

mquad commented Jul 31, 2020

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

@Sandy4321
Copy link
Author

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
Copy link
Author

though I get this
image

is it correct?

@mquad
Copy link
Owner

mquad commented Aug 5, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants