machine_learning_with_python_jadi
machine_learning_with_python_jadi copied to clipboard
Adapt RecSys files with recent changes of pandas
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
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