bonjour,
j'ai 3 fichiers .txt sous la forme suivante:
le premier fichier contient les informations de l'utilisateur id_user | age | sexe |occupation | code postale
le deuxième fichier contient les informations des films id_film | nom| date de sortie .......
1|24|M|technician|85711
2|53|F|other|94043
3|23|M|writer|32067
4|24|M|technician|43537
5|33|F|other|15213
...
et le troisième fichier contient les informations pour connaitre pour chaque utilisateur, quels sont les films qu'il a regardé : id_user|id_film|note_de_film|time
1|Toy Story (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Toy%20Story%20(1995)|0|0|0|1|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0
2|GoldenEye (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?GoldenEye%20(1995)|0|1|1|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0
3|Four Rooms (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Four%20Rooms%20(1995)|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|1|0|0
4|Get Shorty (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Get%20Shorty%20(1995)|0|1|0|0|0|1|0|0|1|0|0|0|0|0|0|0|0|0|0
5|Copycat (1995)|01-Jan-1995||http://us.imdb.com/M/title-exact?Copycat%20(1995)|0|0|0|0|0|0|1|0|1|0|0|0|0|0|0|0|1|0|0
6|Shanghai Triad (Yao a yao yao dao waipo qiao) (1995)|01-Jan-1995||http://us.imdb.com/Title?Yao+a+yao+yao+dao+waipo+qiao (1995)|0|0|0|0|0|0|0|0|1|0|0|0|0|0|0|0|0|0|0
.....
1 242 3 881250949
2 302 3 891717742
22 377 1 878887116
.....
mon objectif est de connaitre les films regardés par chaque user ( par exemple pour user1 , quels sont les films qu'il a regardé ??)
comment je peux faire ce type de traitement ??
merci !
Partager