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

Adapt RecSys files with recent changes of pandas #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mazdakdev
Copy link

@mazdakdev mazdakdev commented Oct 8, 2023

I have adapted the both recommender system notebooks with the recent versions of pandas.

Changes Summary

 foo = foo.drop('bar', 1) 

Has changed to:

 foo = foo.drop('bar', axis=1)
 movies_df['title'] = movies_df.title.str.replace('(\(\d\d\d\d\))', '')

Has changed to:

 movies_df['title'] = movies_df.title.str.replace('(\(\d\d\d\d\))', '', regex=True)

Resources

Screenshot 2023-10-08 at 10 51 21 PM

https://stackoverflow.com/questions/66603854/futurewarning-the-default-value-of-regex-will-change-from-true-to-false-in-a-fu

https://stackoverflow.com/questions/68900763/how-to-update-pandas-dataframe-drop-for-future-warning-all-arguments-of-data

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

Successfully merging this pull request may close these issues.

1 participant