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. So try this:
up_df1 = {'Name': names, 'New Points': point_list}
up_df=pd.DataFrame(up_df1)