I tried doing exactly what you tell in the video. While iterating over the titles, and trying to obtain their length, it gave me an error saying “object of type ‘float’ has no len()”
df = pd.read_csv(“movie_metadata.csv”)
titles = df.get(‘director_name’)
print(titles)
freq_title = {}
for t in titles:
length = len(t)
try:
freq_title[length] += 1
except:
freq_title[length] = 1
print(freq_title)