The reason for this error is that you have created a dictionary
up_df = {'Name': names, 'New Points': point_list}
but you are treating it as a pandas dataframe
j=(up_df[up_df['Name']==name].index.values)
You have to create a pandas dataframe first.
For example:
up_df1 = {'Name': names, 'New Points': point_list}
up_df=pd.DataFrame(up_df1)
For more details on Python Pandas, study the Python Course. Also, study the Machine Learning Certification Course by Intellipaat for more details on this. Hope this answer helps you!