This is what I have
# Ratings data.
ratings = tfds.load('movie_lens/100k-ratings', split="train")
# Features of all the available movies.
movies = tfds.load('movie_lens/100k-movies', split="train")
# Select the basic features.
ratings = ratings.map(lambda x: {
"movie_title": x["movie_title"],
"user_id": x["user_id"]
})
movies = movies.map(lambda x: x["movie_title"])
Since I don't want to download MovieLens, but my own data set. I tried reading it through pandas. Unfortunately, a data frame does not have a map(...) method. Is there an option that reads my .csv file and transfers it like tfds.load(...)
This is what I tried
# Ratings data.
ratings = pd.read_csv('/content/drive/My Drive/Dataset/Test/ratings.csv')
movies = pd.read_csv('/content/drive/My Drive/Dataset/Test/movies.csv')
The Error
AttributeError: 'DataFrame' object has no attribute 'map'