machine_learning_with_python_jadi icon indicating copy to clipboard operation
machine_learning_with_python_jadi copied to clipboard

Adapt RecSys files with recent changes of pandas

Open mazdakdev opened this issue 2 years ago • 0 comments

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

mazdakdev avatar Oct 08 '23 19:10 mazdakdev