Answer the question
In order to leave comments, you need to log in
[[+content_image]]
How to process rdd?
I have an rdd that looks like this:
my_rdd.take(10)
[['movieId', 'title', 'genres'],
['1', 'Toy Story (1995)', 'Adventure|Animation|Children|Comedy|Fantasy'],
['2', 'Jumanji (1995)', 'Adventure|Children|Fantasy'],
['3', 'Grumpier Old Men (1995)', 'Comedy|Romance'],
['4', 'Waiting to Exhale (1995)', 'Comedy|Drama|Romance'],
['5', 'Father of the Bride Part II (1995)', 'Comedy'],
['6', 'Heat (1995)', 'Action|Crime|Thriller'],
['7', 'Sabrina (1995)', 'Comedy|Romance'],
['8', 'Tom and Huck (1995)', 'Adventure|Children'],
['9', 'Sudden Death (1995)', 'Action']]
arg_genres = 'Action' # фильтр по жанру
year_to = 2012 # фильтр по году
year_from = 2005 # фильтр по году
regexp = 'Toy Story' # фильтр по названию фильма
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question