for the last line, there's the error, I cannot figure out why there's the attribute error
import pandas as pd
name = pd.read_csv('location', encoding='latin1')
name['Name'] = name['Name'].str.lower()
movie_name = name['Name'].replace(" ", "_")
try:
URL = "https://www.rottentomatoes.com/m/ + movie_name"
except:
pass
df = URL
df.to_csv('url.csv', index=False)