-2
How can I take these NaN
and leave the titles of the films, by any of the construction methods?
import pandas as pd
rating_data = pd.read_csv('ml-25m/ratings.csv')
movies_data = pd.read_csv('ml-25m/movies.csv')['title']
k = pd.DataFrame(movies_data.head(10), index =[ i for i in range(1,11)], columns = ['título'])
s = pd.Series(data = k['título'], index = k.index)
print(k)
print(s)
A variable is called rating_data and the other movies_data?
– Guilherme Nascimento