Movie Recomendation System¶

In this project we will be building a model which will recomend movies according to many parameters. We will be using Cosine Similarity and TF-IDF to complete the target¶

In [173]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import seaborn as sns
In [174]:
df = pd.read_csv('movies.csv')
df.head()
Out[174]:
index budget genres homepage id keywords original_language original_title overview popularity ... runtime spoken_languages status tagline title vote_average vote_count cast crew director
0 0 237000000 Action Adventure Fantasy Science Fiction http://www.avatarmovie.com/ 19995 culture clash future space war space colony so... en Avatar In the 22nd century, a paraplegic Marine is di... 150.437577 ... 162.0 [{"iso_639_1": "en", "name": "English"}, {"iso... Released Enter the World of Pandora. Avatar 7.2 11800 Sam Worthington Zoe Saldana Sigourney Weaver S... [{'name': 'Stephen E. Rivkin', 'gender': 0, 'd... James Cameron
1 1 300000000 Adventure Fantasy Action http://disney.go.com/disneypictures/pirates/ 285 ocean drug abuse exotic island east india trad... en Pirates of the Caribbean: At World's End Captain Barbossa, long believed to be dead, ha... 139.082615 ... 169.0 [{"iso_639_1": "en", "name": "English"}] Released At the end of the world, the adventure begins. Pirates of the Caribbean: At World's End 6.9 4500 Johnny Depp Orlando Bloom Keira Knightley Stel... [{'name': 'Dariusz Wolski', 'gender': 2, 'depa... Gore Verbinski
2 2 245000000 Action Adventure Crime http://www.sonypictures.com/movies/spectre/ 206647 spy based on novel secret agent sequel mi6 en Spectre A cryptic message from Bond’s past sends him o... 107.376788 ... 148.0 [{"iso_639_1": "fr", "name": "Fran\u00e7ais"},... Released A Plan No One Escapes Spectre 6.3 4466 Daniel Craig Christoph Waltz L\u00e9a Seydoux ... [{'name': 'Thomas Newman', 'gender': 2, 'depar... Sam Mendes
3 3 250000000 Action Crime Drama Thriller http://www.thedarkknightrises.com/ 49026 dc comics crime fighter terrorist secret ident... en The Dark Knight Rises Following the death of District Attorney Harve... 112.312950 ... 165.0 [{"iso_639_1": "en", "name": "English"}] Released The Legend Ends The Dark Knight Rises 7.6 9106 Christian Bale Michael Caine Gary Oldman Anne ... [{'name': 'Hans Zimmer', 'gender': 2, 'departm... Christopher Nolan
4 4 260000000 Action Adventure Science Fiction http://movies.disney.com/john-carter 49529 based on novel mars medallion space travel pri... en John Carter John Carter is a war-weary, former military ca... 43.926995 ... 132.0 [{"iso_639_1": "en", "name": "English"}] Released Lost in our world, found in another. John Carter 6.1 2124 Taylor Kitsch Lynn Collins Samantha Morton Wil... [{'name': 'Andrew Stanton', 'gender': 2, 'depa... Andrew Stanton

5 rows × 24 columns

In [175]:
df.shape
Out[175]:
(4803, 24)
In [176]:
df.isnull().sum()
Out[176]:
index                      0
budget                     0
genres                    28
homepage                3091
id                         0
keywords                 412
original_language          0
original_title             0
overview                   3
popularity                 0
production_companies       0
production_countries       0
release_date               1
revenue                    0
runtime                    2
spoken_languages           0
status                     0
tagline                  844
title                      0
vote_average               0
vote_count                 0
cast                      43
crew                       0
director                  30
dtype: int64
In [177]:
df.nunique()
Out[177]:
index                   4803
budget                   436
genres                  1168
homepage                1691
id                      4803
keywords                4219
original_language         37
original_title          4801
overview                4800
popularity              4802
production_companies    3697
production_countries     469
release_date            3280
revenue                 3297
runtime                  156
spoken_languages         544
status                     3
tagline                 3944
title                   4800
vote_average              71
vote_count              1609
cast                    4741
crew                    4776
director                2349
dtype: int64
In [178]:
# df_sel = ['genres', 'keywords', 'tagline', 'cast', 'director']
df_sel = ['genres', 'keywords', 'tagline', 'cast', 'director', 'original_language', 'overview', 'tagline']
df_sel
Out[178]:
['genres',
 'keywords',
 'tagline',
 'cast',
 'director',
 'original_language',
 'overview',
 'tagline']
In [179]:
df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 4803 entries, 0 to 4802
Data columns (total 24 columns):
 #   Column                Non-Null Count  Dtype  
---  ------                --------------  -----  
 0   index                 4803 non-null   int64  
 1   budget                4803 non-null   int64  
 2   genres                4775 non-null   object 
 3   homepage              1712 non-null   object 
 4   id                    4803 non-null   int64  
 5   keywords              4391 non-null   object 
 6   original_language     4803 non-null   object 
 7   original_title        4803 non-null   object 
 8   overview              4800 non-null   object 
 9   popularity            4803 non-null   float64
 10  production_companies  4803 non-null   object 
 11  production_countries  4803 non-null   object 
 12  release_date          4802 non-null   object 
 13  revenue               4803 non-null   int64  
 14  runtime               4801 non-null   float64
 15  spoken_languages      4803 non-null   object 
 16  status                4803 non-null   object 
 17  tagline               3959 non-null   object 
 18  title                 4803 non-null   object 
 19  vote_average          4803 non-null   float64
 20  vote_count            4803 non-null   int64  
 21  cast                  4760 non-null   object 
 22  crew                  4803 non-null   object 
 23  director              4773 non-null   object 
dtypes: float64(3), int64(5), object(16)
memory usage: 900.7+ KB
In [180]:
df.describe()
Out[180]:
index budget id popularity revenue runtime vote_average vote_count
count 4803.000000 4.803000e+03 4803.000000 4803.000000 4.803000e+03 4801.000000 4803.000000 4803.000000
mean 2401.000000 2.904504e+07 57165.484281 21.492301 8.226064e+07 106.875859 6.092172 690.217989
std 1386.651002 4.072239e+07 88694.614033 31.816650 1.628571e+08 22.611935 1.194612 1234.585891
min 0.000000 0.000000e+00 5.000000 0.000000 0.000000e+00 0.000000 0.000000 0.000000
25% 1200.500000 7.900000e+05 9014.500000 4.668070 0.000000e+00 94.000000 5.600000 54.000000
50% 2401.000000 1.500000e+07 14629.000000 12.921594 1.917000e+07 103.000000 6.200000 235.000000
75% 3601.500000 4.000000e+07 58610.500000 28.313505 9.291719e+07 118.000000 6.800000 737.000000
max 4802.000000 3.800000e+08 459488.000000 875.581305 2.787965e+09 338.000000 10.000000 13752.000000
In [181]:
df[df_sel].head()
Out[181]:
genres keywords tagline cast director original_language overview tagline
0 Action Adventure Fantasy Science Fiction culture clash future space war space colony so... Enter the World of Pandora. Sam Worthington Zoe Saldana Sigourney Weaver S... James Cameron en In the 22nd century, a paraplegic Marine is di... Enter the World of Pandora.
1 Adventure Fantasy Action ocean drug abuse exotic island east india trad... At the end of the world, the adventure begins. Johnny Depp Orlando Bloom Keira Knightley Stel... Gore Verbinski en Captain Barbossa, long believed to be dead, ha... At the end of the world, the adventure begins.
2 Action Adventure Crime spy based on novel secret agent sequel mi6 A Plan No One Escapes Daniel Craig Christoph Waltz L\u00e9a Seydoux ... Sam Mendes en A cryptic message from Bond’s past sends him o... A Plan No One Escapes
3 Action Crime Drama Thriller dc comics crime fighter terrorist secret ident... The Legend Ends Christian Bale Michael Caine Gary Oldman Anne ... Christopher Nolan en Following the death of District Attorney Harve... The Legend Ends
4 Action Adventure Science Fiction based on novel mars medallion space travel pri... Lost in our world, found in another. Taylor Kitsch Lynn Collins Samantha Morton Wil... Andrew Stanton en John Carter is a war-weary, former military ca... Lost in our world, found in another.
In [182]:
df[df_sel].isnull().sum()
Out[182]:
genres                28
keywords             412
tagline              844
cast                  43
director              30
original_language      0
overview               3
tagline              844
dtype: int64
In [183]:
for i in df_sel:
    df[i] = df[i].fillna("")
df[df_sel].isnull().sum()
Out[183]:
genres               0
keywords             0
tagline              0
cast                 0
director             0
original_language    0
overview             0
tagline              0
dtype: int64
In [184]:
# df_new = df['genres'] + '' + df['keywords'] + '' + df['tagline'] + '' + df['cast'] + '' + df['director']
df_new = df['genres'] + '' + df['keywords'] + '' + df['tagline'] + '' + df['cast'] + '' + df['director'] + '' + df['original_language'] + '' + df['overview']
In [185]:
df_new
Out[185]:
0       Action Adventure Fantasy Science Fictioncultur...
1       Adventure Fantasy Actionocean drug abuse exoti...
2       Action Adventure Crimespy based on novel secre...
3       Action Crime Drama Thrillerdc comics crime fig...
4       Action Adventure Science Fictionbased on novel...
                              ...                        
4798    Action Crime Thrillerunited states\u2013mexico...
4799    Comedy RomanceA newlywed couple's honeymoon is...
4800    Comedy Drama Romance TV Moviedate love at firs...
4801    A New Yorker in ShanghaiDaniel Henney Eliza Co...
4802    Documentaryobsession camcorder crush dream gir...
Length: 4803, dtype: object
In [186]:
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
In [187]:
vectorizer = TfidfVectorizer()
In [188]:
feature_vectors = vectorizer.fit_transform(df_new)
In [189]:
feature_vectors
Out[189]:
<4803x44686 sparse matrix of type '<class 'numpy.float64'>'
	with 295804 stored elements in Compressed Sparse Row format>
In [190]:
feature_vectors.shape
Out[190]:
(4803, 44686)
In [191]:
cos_sim = cosine_similarity(feature_vectors)
cos_sim
Out[191]:
array([[1.        , 0.04634326, 0.02108158, ..., 0.02523981, 0.03220834,
        0.0067229 ],
       [0.04634326, 1.        , 0.03934628, ..., 0.04579739, 0.03190711,
        0.01639837],
       [0.02108158, 0.03934628, 1.        , ..., 0.02539329, 0.01199586,
        0.01472132],
       ...,
       [0.02523981, 0.04579739, 0.02539329, ..., 1.        , 0.03853042,
        0.02034653],
       [0.03220834, 0.03190711, 0.01199586, ..., 0.03853042, 1.        ,
        0.03414151],
       [0.0067229 , 0.01639837, 0.01472132, ..., 0.02034653, 0.03414151,
        1.        ]])
In [192]:
cos_sim.shape
Out[192]:
(4803, 4803)
In [193]:
titles = df['title'].tolist()
titles
Out[193]:
['Avatar',
 "Pirates of the Caribbean: At World's End",
 'Spectre',
 'The Dark Knight Rises',
 'John Carter',
 'Spider-Man 3',
 'Tangled',
 'Avengers: Age of Ultron',
 'Harry Potter and the Half-Blood Prince',
 'Batman v Superman: Dawn of Justice',
 'Superman Returns',
 'Quantum of Solace',
 "Pirates of the Caribbean: Dead Man's Chest",
 'The Lone Ranger',
 'Man of Steel',
 'The Chronicles of Narnia: Prince Caspian',
 'The Avengers',
 'Pirates of the Caribbean: On Stranger Tides',
 'Men in Black 3',
 'The Hobbit: The Battle of the Five Armies',
 'The Amazing Spider-Man',
 'Robin Hood',
 'The Hobbit: The Desolation of Smaug',
 'The Golden Compass',
 'King Kong',
 'Titanic',
 'Captain America: Civil War',
 'Battleship',
 'Jurassic World',
 'Skyfall',
 'Spider-Man 2',
 'Iron Man 3',
 'Alice in Wonderland',
 'X-Men: The Last Stand',
 'Monsters University',
 'Transformers: Revenge of the Fallen',
 'Transformers: Age of Extinction',
 'Oz: The Great and Powerful',
 'The Amazing Spider-Man 2',
 'TRON: Legacy',
 'Cars 2',
 'Green Lantern',
 'Toy Story 3',
 'Terminator Salvation',
 'Furious 7',
 'World War Z',
 'X-Men: Days of Future Past',
 'Star Trek Into Darkness',
 'Jack the Giant Slayer',
 'The Great Gatsby',
 'Prince of Persia: The Sands of Time',
 'Pacific Rim',
 'Transformers: Dark of the Moon',
 'Indiana Jones and the Kingdom of the Crystal Skull',
 'The Good Dinosaur',
 'Brave',
 'Star Trek Beyond',
 'WALL·E',
 'Rush Hour 3',
 '2012',
 'A Christmas Carol',
 'Jupiter Ascending',
 'The Legend of Tarzan',
 'The Chronicles of Narnia: The Lion, the Witch and the Wardrobe',
 'X-Men: Apocalypse',
 'The Dark Knight',
 'Up',
 'Monsters vs Aliens',
 'Iron Man',
 'Hugo',
 'Wild Wild West',
 'The Mummy: Tomb of the Dragon Emperor',
 'Suicide Squad',
 'Evan Almighty',
 'Edge of Tomorrow',
 'Waterworld',
 'G.I. Joe: The Rise of Cobra',
 'Inside Out',
 'The Jungle Book',
 'Iron Man 2',
 'Snow White and the Huntsman',
 'Maleficent',
 'Dawn of the Planet of the Apes',
 'The Lovers',
 '47 Ronin',
 'Captain America: The Winter Soldier',
 'Shrek Forever After',
 'Tomorrowland',
 'Big Hero 6',
 'Wreck-It Ralph',
 'The Polar Express',
 'Independence Day: Resurgence',
 'How to Train Your Dragon',
 'Terminator 3: Rise of the Machines',
 'Guardians of the Galaxy',
 'Interstellar',
 'Inception',
 'Shin Godzilla',
 'The Hobbit: An Unexpected Journey',
 'The Fast and the Furious',
 'The Curious Case of Benjamin Button',
 'X-Men: First Class',
 'The Hunger Games: Mockingjay - Part 2',
 "The Sorcerer's Apprentice",
 'Poseidon',
 'Alice Through the Looking Glass',
 'Shrek the Third',
 'Warcraft',
 'Terminator Genisys',
 'The Chronicles of Narnia: The Voyage of the Dawn Treader',
 'Pearl Harbor',
 'Transformers',
 'Alexander',
 'Harry Potter and the Order of the Phoenix',
 'Harry Potter and the Goblet of Fire',
 'Hancock',
 'I Am Legend',
 'Charlie and the Chocolate Factory',
 'Ratatouille',
 'Batman Begins',
 'Madagascar: Escape 2 Africa',
 'Night at the Museum: Battle of the Smithsonian',
 'X-Men Origins: Wolverine',
 'The Matrix Revolutions',
 'Frozen',
 'The Matrix Reloaded',
 'Thor: The Dark World',
 'Mad Max: Fury Road',
 'Angels & Demons',
 'Thor',
 'Bolt',
 'G-Force',
 'Wrath of the Titans',
 'Dark Shadows',
 'Mission: Impossible - Rogue Nation',
 'The Wolfman',
 'Bee Movie',
 'Kung Fu Panda 2',
 'The Last Airbender',
 'Mission: Impossible III',
 'White House Down',
 'Mars Needs Moms',
 'Flushed Away',
 'Pan',
 'Mr. Peabody & Sherman',
 'Troy',
 "Madagascar 3: Europe's Most Wanted",
 'Die Another Day',
 'Ghostbusters',
 'Armageddon',
 'Men in Black II',
 'Beowulf',
 'Kung Fu Panda 3',
 'Mission: Impossible - Ghost Protocol',
 'Rise of the Guardians',
 'Fun with Dick and Jane',
 'The Last Samurai',
 'Exodus: Gods and Kings',
 'Star Trek',
 'Spider-Man',
 'How to Train Your Dragon 2',
 'Gods of Egypt',
 'Stealth',
 'Watchmen',
 'Lethal Weapon 4',
 'Hulk',
 'G.I. Joe: Retaliation',
 'Sahara',
 'Final Fantasy: The Spirits Within',
 'Captain America: The First Avenger',
 'The World Is Not Enough',
 'Master and Commander: The Far Side of the World',
 'The Twilight Saga: Breaking Dawn - Part 2',
 'Happy Feet Two',
 'The Incredible Hulk',
 'The BFG',
 'The Revenant',
 'Turbo',
 'Rango',
 'Penguins of Madagascar',
 'The Bourne Ultimatum',
 'Kung Fu Panda',
 'Ant-Man',
 'The Hunger Games: Catching Fire',
 'Home',
 'War of the Worlds',
 'Bad Boys II',
 'Puss in Boots',
 'Salt',
 'Noah',
 'The Adventures of Tintin',
 'Harry Potter and the Prisoner of Azkaban',
 'Australia',
 'After Earth',
 'Dinosaur',
 'Night at the Museum: Secret of the Tomb',
 'Megamind',
 "Harry Potter and the Philosopher's Stone",
 'R.I.P.D.',
 'Pirates of the Caribbean: The Curse of the Black Pearl',
 'The Hunger Games: Mockingjay - Part 1',
 'The Da Vinci Code',
 'Rio 2',
 'X2',
 'Fast Five',
 'Sherlock Holmes: A Game of Shadows',
 'Clash of the Titans',
 'Total Recall',
 'The 13th Warrior',
 'The Bourne Legacy',
 'Batman & Robin',
 'How the Grinch Stole Christmas',
 'The Day After Tomorrow',
 'Mission: Impossible II',
 'The Perfect Storm',
 'Fantastic 4: Rise of the Silver Surfer',
 'Life of Pi',
 'Ghost Rider',
 'Jason Bourne',
 "Charlie's Angels: Full Throttle",
 'Prometheus',
 'Stuart Little 2',
 'Elysium',
 'The Chronicles of Riddick',
 'RoboCop',
 'Speed Racer',
 'How Do You Know',
 'Knight and Day',
 'Oblivion',
 'Star Wars: Episode III - Revenge of the Sith',
 'Star Wars: Episode II - Attack of the Clones',
 'Monsters, Inc.',
 'The Wolverine',
 'Star Wars: Episode I - The Phantom Menace',
 'The Croods',
 'Asterix at the Olympic Games',
 'Windtalkers',
 "The Huntsman: Winter's War",
 'Teenage Mutant Ninja Turtles',
 'Gravity',
 "Dante's Peak",
 'Teenage Mutant Ninja Turtles: Out of the Shadows',
 'Fantastic Four',
 'Night at the Museum',
 'San Andreas',
 'Tomorrow Never Dies',
 'The Patriot',
 "Ocean's Twelve",
 'Mr. & Mrs. Smith',
 'Insurgent',
 'The Aviator',
 "Gulliver's Travels",
 'The Green Hornet',
 '300: Rise of an Empire',
 'The Smurfs',
 'Home on the Range',
 'Allegiant',
 'Real Steel',
 'The Smurfs 2',
 'Speed 2: Cruise Control',
 "Ender's Game",
 'Live Free or Die Hard',
 'The Lord of the Rings: The Fellowship of the Ring',
 'Around the World in 80 Days',
 'Ali',
 'The Cat in the Hat',
 'I, Robot',
 'Kingdom of Heaven',
 'Stuart Little',
 'The Princess and the Frog',
 'The Martian',
 'The Island',
 'Town & Country',
 'Gone in Sixty Seconds',
 'Gladiator',
 'Minority Report',
 'Harry Potter and the Chamber of Secrets',
 'Casino Royale',
 'Planet of the Apes',
 'Terminator 2: Judgment Day',
 'Public Enemies',
 'American Gangster',
 'True Lies',
 'The Taking of Pelham 1 2 3',
 'Little Fockers',
 'The Other Guys',
 'Eraser',
 'Django Unchained',
 'The Hunchback of Notre Dame',
 "The Emperor's New Groove",
 'The Expendables 2',
 'National Treasure',
 'Eragon',
 'Where the Wild Things Are',
 'Epic',
 'The Tourist',
 'End of Days',
 'Blood Diamond',
 'The Wolf of Wall Street',
 'Batman Forever',
 'Starship Troopers',
 'Cloud Atlas',
 "Legend of the Guardians: The Owls of Ga'Hoole",
 'Catwoman',
 'Hercules',
 'Treasure Planet',
 'Land of the Lost',
 'The Expendables 3',
 'Point Break',
 'Son of the Mask',
 'In the Heart of the Sea',
 'The Adventures of Pluto Nash',
 'Green Zone',
 'The Peanuts Movie',
 'The Spanish Prisoner',
 'The Mummy Returns',
 'Gangs of New York',
 'The Flowers of War',
 "Surf's Up",
 'The Stepford Wives',
 'Black Hawk Down',
 'The Campaign',
 'The Fifth Element',
 'Sex and the City 2',
 'The Road to El Dorado',
 'Ice Age: Continental Drift',
 'Cinderella',
 'The Lovely Bones',
 'Finding Nemo',
 'The Lord of the Rings: The Return of the King',
 'The Lord of the Rings: The Two Towers',
 'Seventh Son',
 'Lara Croft: Tomb Raider',
 'Transcendence',
 'Jurassic Park III',
 'Rise of the Planet of the Apes',
 'The Spiderwick Chronicles',
 'A Good Day to Die Hard',
 'The Alamo',
 'The Incredibles',
 'Cutthroat Island',
 'Percy Jackson & the Olympians: The Lightning Thief',
 'Men in Black',
 'Toy Story 2',
 'Unstoppable',
 'Rush Hour 2',
 'What Lies Beneath',
 'Cloudy with a Chance of Meatballs',
 'Ice Age: Dawn of the Dinosaurs',
 'The Secret Life of Walter Mitty',
 "Charlie's Angels",
 'The Departed',
 'Mulan',
 'Tropic Thunder',
 'The Girl with the Dragon Tattoo',
 'Die Hard: With a Vengeance',
 'Sherlock Holmes',
 'Ben-Hur',
 'Atlantis: The Lost Empire',
 'Alvin and the Chipmunks: The Road Chip',
 'Valkyrie',
 "You Don't Mess with the Zohan",
 'Pixels',
 'A.I. Artificial Intelligence',
 'The Haunted Mansion',
 'Contact',
 'Hollow Man',
 'The Interpreter',
 'Percy Jackson: Sea of Monsters',
 'Lara Croft Tomb Raider: The Cradle of Life',
 'Now You See Me 2',
 'The Saint',
 'Spy Game',
 'Mission to Mars',
 'Rio',
 'Bicentennial Man',
 'Volcano',
 "The Devil's Own",
 'K-19: The Widowmaker',
 'Conan the Barbarian',
 'Cinderella Man',
 'The Nutcracker: The Untold Story',
 'Seabiscuit',
 'Twister',
 'Cast Away',
 'Happy Feet',
 'The Bourne Supremacy',
 'Air Force One',
 "Ocean's Eleven",
 'The Three Musketeers',
 'Hotel Transylvania',
 'Enchanted',
 'Safe House',
 '102 Dalmatians',
 'Tower Heist',
 'The Holiday',
 'Enemy of the State',
 "It's Complicated",
 "Ocean's Thirteen",
 'Open Season',
 'Divergent',
 'Enemy at the Gates',
 'The Rundown',
 'Last Action Hero',
 'Memoirs of a Geisha',
 'The Fast and the Furious: Tokyo Drift',
 'Arthur Christmas',
 'Meet Joe Black',
 'Collateral Damage',
 'All That Jazz',
 'Mirror Mirror',
 'Scott Pilgrim vs. the World',
 'The Core',
 'Nutty Professor II: The Klumps',
 'Scooby-Doo',
 'Dredd',
 'Click',
 'Creepshow',
 'Cats & Dogs 2 : The Revenge of Kitty Galore',
 'Jumper',
 'Hellboy II: The Golden Army',
 'Zodiac',
 'The 6th Day',
 'Bruce Almighty',
 'The Expendables',
 'Mission: Impossible',
 'The Hunger Games',
 'The Hangover Part II',
 'Batman Returns',
 'Over the Hedge',
 'Lilo & Stitch',
 "Charlotte's Web",
 'Deep Impact',
 'RED 2',
 'The Longest Yard',
 'Alvin and the Chipmunks: Chipwrecked',
 'Grown Ups 2',
 'Get Smart',
 "Something's Gotta Give",
 'Shutter Island',
 'Four Christmases',
 'Robots',
 'Face/Off',
 'Bedtime Stories',
 'Road to Perdition',
 'Just Go with It',
 'Con Air',
 'Eagle Eye',
 'Cold Mountain',
 'The Book of Eli',
 'Flubber',
 'The Haunting',
 'Space Jam',
 'The Pink Panther',
 'The Day the Earth Stood Still',
 'Conspiracy Theory',
 'Fury',
 'Six Days Seven Nights',
 'Yogi Bear',
 'Spirit: Stallion of the Cimarron',
 'Zookeeper',
 'Lost in Space',
 'The Manchurian Candidate',
 'Déjà Vu',
 'Hotel Transylvania 2',
 'Fantasia 2000',
 'The Time Machine',
 'Mighty Joe Young',
 'Swordfish',
 'The Legend of Zorro',
 'What Dreams May Come',
 'Little Nicky',
 'The Brothers Grimm',
 'Mars Attacks!',
 'Evolution',
 'The Edge',
 'Surrogates',
 'Thirteen Days',
 'Daylight',
 'Walking With Dinosaurs',
 'Battlefield Earth',
 'Looney Tunes: Back in Action',
 'Nine',
 'Timeline',
 'The Postman',
 'Babe: Pig in the City',
 'The Last Witch Hunter',
 'Red Planet',
 'Arthur and the Invisibles',
 'Oceans',
 'A Sound of Thunder',
 'Pompeii',
 'Top Cat Begins',
 'A Beautiful Mind',
 'The Lion King',
 'Journey 2: The Mysterious Island',
 'Cloudy with a Chance of Meatballs 2',
 'Red Dragon',
 'Hidalgo',
 'Jack and Jill',
 '2 Fast 2 Furious',
 'The Little Prince',
 'The Invasion',
 'The Adventures of Rocky & Bullwinkle',
 'The Secret Life of Pets',
 'The League of Extraordinary Gentlemen',
 'Despicable Me 2',
 'Independence Day',
 'The Lost World: Jurassic Park',
 'Madagascar',
 'Children of Men',
 'X-Men',
 'Wanted',
 'The Rock',
 'Ice Age: The Meltdown',
 '50 First Dates',
 'Hairspray',
 'Exorcist: The Beginning',
 'Inspector Gadget',
 'Now You See Me',
 'Grown Ups',
 'The Terminal',
 'Hotel for Dogs',
 'Vertical Limit',
 "Charlie Wilson's War",
 'Shark Tale',
 'Dreamgirls',
 'Be Cool',
 'Munich',
 'Tears of the Sun',
 'Killers',
 'The Man from U.N.C.L.E.',
 'Spanglish',
 'Monster House',
 'Bandits',
 'First Knight',
 'Anna and the King',
 'Immortals',
 'Hostage',
 'Titan A.E.',
 'Hollywood Homicide',
 'Soldier',
 'Carriers',
 'Monkeybone',
 'Flight of the Phoenix',
 'Unbreakable',
 'Minions',
 'Sucker Punch',
 'Snake Eyes',
 'Sphere',
 'The Angry Birds Movie',
 "Fool's Gold",
 'Funny People',
 'The Kingdom',
 'Talladega Nights: The Ballad of Ricky Bobby',
 'Dr. Dolittle 2',
 'Braveheart',
 'Jarhead',
 'The Simpsons Movie',
 'The Majestic',
 'Driven',
 'Two Brothers',
 'The Village',
 'Doctor Dolittle',
 'Signs',
 'Shrek 2',
 'Cars',
 'Runaway Bride',
 'xXx',
 'The SpongeBob Movie: Sponge Out of Water',
 'Ransom',
 'Inglourious Basterds',
 'Hook',
 'Die Hard 2',
 'S.W.A.T.',
 'Vanilla Sky',
 'Lady in the Water',
 'AVP: Alien vs. Predator',
 'Alvin and the Chipmunks: The Squeakquel',
 'We Were Soldiers',
 'Olympus Has Fallen',
 'Star Trek: Insurrection',
 'Battle: Los Angeles',
 'Big Fish',
 'Wolf',
 'War Horse',
 'The Monuments Men',
 'The Abyss',
 'Wall Street: Money Never Sleeps',
 'Dracula Untold',
 'The Siege',
 'Stardust',
 'Seven Years in Tibet',
 'The Dilemma',
 'Bad Company',
 'Doom',
 'I Spy',
 'Underworld: Awakening',
 'Rock of Ages',
 "Hart's War",
 'Killer Elite',
 'Rollerball',
 'Ballistic: Ecks vs. Sever',
 'Hard Rain',
 'Osmosis Jones',
 "Legends of Oz: Dorothy's Return",
 'Blackhat',
 'Sky Captain and the World of Tomorrow',
 'Basic Instinct 2',
 'Escape Plan',
 'The Legend of Hercules',
 'The Sum of All Fears',
 'The Twilight Saga: Eclipse',
 'The Score',
 'Despicable Me',
 'Money Train',
 'Ted 2',
 'Agora',
 'Mystery Men',
 'Hall Pass',
 'The Insider',
 'The Finest Hours',
 'Body of Lies',
 'Dinner for Schmucks',
 'Abraham Lincoln: Vampire Hunter',
 'Entrapment',
 'The X Files',
 'The Last Legion',
 'Saving Private Ryan',
 'Need for Speed',
 'What Women Want',
 'Ice Age',
 'Dreamcatcher',
 'Lincoln',
 'The Matrix',
 'Apollo 13',
 'The Santa Clause 2',
 'Les Misérables',
 "You've Got Mail",
 'Step Brothers',
 'The Mask of Zorro',
 'Due Date',
 'Unbroken',
 'Space Cowboys',
 'Cliffhanger',
 'Broken Arrow',
 'The Kid',
 'World Trade Center',
 'Mona Lisa Smile',
 'The Dictator',
 'Eyes Wide Shut',
 'Annie',
 'Focus',
 'This Means War',
 'Blade: Trinity',
 'Red Dawn',
 'Primary Colors',
 'Resident Evil: Retribution',
 'Death Race',
 'The Long Kiss Goodnight',
 'Proof of Life',
 'Zathura: A Space Adventure',
 'Fight Club',
 'We Are Marshall',
 'Hudson Hawk',
 'Lucky Numbers',
 'I, Frankenstein',
 'Oliver Twist',
 'Elektra',
 'Sin City: A Dame to Kill For',
 'Random Hearts',
 'Everest',
 'Perfume: The Story of a Murderer',
 'Austin Powers in Goldmember',
 'Astro Boy',
 'Jurassic Park',
 'Wyatt Earp',
 'Clear and Present Danger',
 'Dragon Blade',
 'Little Man',
 'U-571',
 'The American President',
 'The Love Guru',
 '3000 Miles to Graceland',
 'The Hateful Eight',
 'Blades of Glory',
 'Hop',
 '300',
 'Meet the Fockers',
 'Marley & Me',
 'The Green Mile',
 'Wild Hogs',
 'Chicken Little',
 'Gone Girl',
 'The Bourne Identity',
 'GoldenEye',
 "The General's Daughter",
 'The Truman Show',
 'The Prince of Egypt',
 'Daddy Day Care',
 '2 Guns',
 'Cats & Dogs',
 'The Italian Job',
 'Two Weeks Notice',
 'Antz',
 'Couples Retreat',
 'Days of Thunder',
 'Cheaper by the Dozen 2',
 'Maze Runner: The Scorch Trials',
 'Eat Pray Love',
 'The Family Man',
 'RED',
 'Any Given Sunday',
 'The Horse Whisperer',
 'Collateral',
 'The Scorpion King',
 'Ladder 49',
 'Jack Reacher',
 'Deep Blue Sea',
 'This Is It',
 'Contagion',
 'Kangaroo Jack',
 'Coraline',
 'The Happening',
 'Man on Fire',
 'The Shaggy Dog',
 'Starsky & Hutch',
 'Jingle All the Way',
 'Hellboy',
 'A Civil Action',
 'ParaNorman',
 'The Jackal',
 'Paycheck',
 'Up Close & Personal',
 'The Tale of Despereaux',
 'The Tuxedo',
 'Under Siege 2: Dark Territory',
 'Jack Ryan: Shadow Recruit',
 'Joy',
 'London Has Fallen',
 'Alien: Resurrection',
 'Shooter',
 'The Boxtrolls',
 'Practical Magic',
 'The Lego Movie',
 'Miss Congeniality 2: Armed and Fabulous',
 'Reign of Fire',
 'Gangster Squad',
 'Year One',
 'Invictus',
 'State of Play',
 'Duplicity',
 'My Favorite Martian',
 'The Sentinel',
 'Planet 51',
 'Star Trek: Nemesis',
 'Intolerable Cruelty',
 'Trouble with the Curve',
 'Edge of Darkness',
 'The Relic',
 'Analyze That',
 'Righteous Kill',
 'Mercury Rising',
 'The Soloist',
 'The Legend of Bagger Vance',
 'Almost Famous',
 'Garfield: A Tail of Two Kitties',
 'xXx: State of the Union',
 'Priest',
 'Sinbad: Legend of the Seven Seas',
 'Event Horizon',
 'Dragonfly',
 'The Black Dahlia',
 'Flyboys',
 'The Last Castle',
 'Supernova',
 "Winter's Tale",
 'The Mortal Instruments: City of Bones',
 'Meet Dave',
 'Dark Water',
 'Edtv',
 'Inkheart',
 'The Spirit',
 'Mortdecai',
 'In the Name of the King: A Dungeon Siege Tale',
 'Beyond Borders',
 'The Monkey King 2',
 'The Great Raid',
 'Deadpool',
 'Holy Man',
 'American Sniper',
 'Goosebumps',
 'Just Like Heaven',
 'The Flintstones in Viva Rock Vegas',
 'Rambo III',
 'Leatherheads',
 'The Ridiculous 6',
 'Did You Hear About the Morgans?',
 'The Internship',
 'Resident Evil: Afterlife',
 'Red Tails',
 "The Devil's Advocate",
 "That's My Boy",
 'DragonHeart',
 'After the Sunset',
 'Ghost Rider: Spirit of Vengeance',
 "Captain Corelli's Mandolin",
 'The Pacifier',
 'Walking Tall',
 'Forrest Gump',
 'Alvin and the Chipmunks',
 'Meet the Parents',
 'Pocahontas',
 'Superman',
 'The Nutty Professor',
 'Hitch',
 'George of the Jungle',
 'American Wedding',
 'Captain Phillips',
 'Date Night',
 'Casper',
 'The Equalizer',
 'Maid in Manhattan',
 'Crimson Tide',
 'The Pursuit of Happyness',
 'Flightplan',
 'Disclosure',
 'City of Angels',
 'Kill Bill: Vol. 1',
 'Bowfinger',
 'Kill Bill: Vol. 2',
 'Tango & Cash',
 'Death Becomes Her',
 'Shanghai Noon',
 'Executive Decision',
 "Mr. Popper's Penguins",
 'The Forbidden Kingdom',
 'Free Birds',
 'Alien³',
 'Evita',
 'Ronin',
 'The Ghost and the Darkness',
 'Paddington',
 'The Watch',
 'The Hunted',
 'Instinct',
 'Stuck on You',
 'Semi-Pro',
 'The Pirates! In an Adventure with Scientists!',
 'Changeling',
 'Chain Reaction',
 'The Fan',
 'The Phantom of the Opera',
 'Elizabeth: The Golden Age',
 'Æon Flux',
 'Gods and Generals',
 'Turbulence',
 'Imagine That',
 'Muppets Most Wanted',
 'Thunderbirds',
 'Burlesque',
 'A Very Long Engagement',
 'Lolita',
 'D-Tox',
 'Blade II',
 'Seven Pounds',
 'Bullet to the Head',
 'The Godfather: Part III',
 'Elizabethtown',
 'You, Me and Dupree',
 'Superman II',
 'Gigli',
 "All the King's Men",
 'Shaft',
 'Anastasia',
 'Moulin Rouge!',
 'Domestic Disturbance',
 'Black Mass',
 'Flags of Our Fathers',
 'Law Abiding Citizen',
 'Grindhouse',
 'Beloved',
 'Lucky You',
 'Catch Me If You Can',
 'Zero Dark Thirty',
 'The Break-Up',
 'Mamma Mia!',
 "Valentine's Day",
 'The Dukes of Hazzard',
 'The Thin Red Line',
 'The Change-Up',
 'Man on the Moon',
 'Casino',
 'From Paris with Love',
 'Bulletproof Monk',
 'Me, Myself & Irene',
 'Barnyard',
 'Deck the Halls',
 'The Twilight Saga: New Moon',
 'Shrek',
 'The Adjustment Bureau',
 'Robin Hood: Prince of Thieves',
 'Jerry Maguire',
 'Ted',
 'As Good as It Gets',
 'Patch Adams',
 'Anchorman 2: The Legend Continues',
 'Mr. Deeds',
 'Super 8',
 'Erin Brockovich',
 'How to Lose a Guy in 10 Days',
 '22 Jump Street',
 'Interview with the Vampire',
 'Yes Man',
 'Central Intelligence',
 'Stepmom',
 "Daddy's Home",
 'Into the Woods',
 'Inside Man',
 'Payback',
 'Congo',
 'We Bought a Zoo',
 'Knowing',
 'Failure to Launch',
 'The Ring Two',
 'Crazy, Stupid, Love.',
 'Garfield',
 'Christmas with the Kranks',
 'Moneyball',
 'Outbreak',
 'Non-Stop',
 'Race to Witch Mountain',
 'V for Vendetta',
 'Shanghai Knights',
 'Curious George',
 'Herbie Fully Loaded',
 "Don't Say a Word",
 'Hansel & Gretel: Witch Hunters',
 'Unfaithful',
 'I Am Number Four',
 'Syriana',
 '13 Hours: The Secret Soldiers of Benghazi',
 'The Book of Life',
 'Firewall',
 'Absolute Power',
 'G.I. Jane',
 'The Game',
 'Silent Hill',
 'The Replacements',
 'American Reunion',
 'The Negotiator',
 'Into the Storm',
 'Beverly Hills Cop III',
 'Gremlins 2: The New Batch',
 'The Judge',
 'The Peacemaker',
 'Resident Evil: Apocalypse',
 'Bridget Jones: The Edge of Reason',
 'Out of Time',
 'On Deadly Ground',
 'The Adventures of Sharkboy and Lavagirl',
 'The Beach',
 'Raising Helen',
 'Ninja Assassin',
 'For Love of the Game',
 'Striptease',
 'Marmaduke',
 'Hereafter',
 'Murder by Numbers',
 'Assassins',
 'Hannibal Rising',
 'The Story of Us',
 'The Host',
 'Basic',
 'Blood Work',
 'The International',
 'Escape from L.A.',
 'The Iron Giant',
 'The Life Aquatic with Steve Zissou',
 'Free State of Jones',
 'The Life of David Gale',
 'Man of the House',
 'Run All Night',
 'Eastern Promises',
 'Into the Blue',
 'The Messenger: The Story of Joan of Arc',
 'Your Highness',
 'Dream House',
 'Mad City',
 "Baby's Day Out",
 'The Scarlet Letter',
 'Fair Game',
 'Domino',
 'Jade',
 'Gamer',
 'Beautiful Creatures',
 'Death to Smoochy',
 'Zoolander 2',
 'The Big Bounce',
 'What Planet Are You From?',
 ...]
In [194]:
len(titles)
Out[194]:
4803
In [195]:
movie_name = input(' Enter movie name : ')
In [196]:
import difflib
close_matches = difflib.get_close_matches(movie_name, titles)
close_matches
Out[196]:
['Avatar']
In [197]:
one_match = close_matches[0]
one_match
Out[197]:
'Avatar'
In [198]:
index_of_the_movie = df[df.title == one_match]['index'].values[0]
index_of_the_movie
Out[198]:
0
In [199]:
similarity_score = list(enumerate(cos_sim[index_of_the_movie]))
similarity_score
Out[199]:
[(0, 0.9999999999999999),
 (1, 0.046343263192810104),
 (2, 0.021081580816148675),
 (3, 0.018648634815661994),
 (4, 0.0739395126650764),
 (5, 0.031318245096298415),
 (6, 0.021317090146790993),
 (7, 0.05924704890301167),
 (8, 0.02218072479919755),
 (9, 0.02625065944109297),
 (10, 0.04007264841900668),
 (11, 0.029318081052504528),
 (12, 0.019581481093447296),
 (13, 0.023463514215909784),
 (14, 0.05386944574093818),
 (15, 0.027830281346943035),
 (16, 0.030027205662766596),
 (17, 0.026019304028478244),
 (18, 0.04475671029595688),
 (19, 0.031948617702448105),
 (20, 0.02550764206576438),
 (21, 0.01700013445202037),
 (22, 0.015103114059486257),
 (23, 0.030759611317351537),
 (24, 0.020546708250794573),
 (25, 0.024210589764749647),
 (26, 0.05403290163516432),
 (27, 0.07939222531276342),
 (28, 0.0204334864969967),
 (29, 0.04263097317022286),
 (30, 0.020491307402416163),
 (31, 0.0647166822528274),
 (32, 0.038432612582954405),
 (33, 0.024881759387937446),
 (34, 0.016743925623052443),
 (35, 0.03340255568928485),
 (36, 0.07532212717741701),
 (37, 0.04014167966689432),
 (38, 0.028418215465095625),
 (39, 0.041420395122726016),
 (40, 0.03687501932377929),
 (41, 0.05394599328399501),
 (42, 0.011427197415979674),
 (43, 0.10290908767260759),
 (44, 0.0180966251096235),
 (45, 0.053635257995367926),
 (46, 0.06744633416730697),
 (47, 0.09193018440619648),
 (48, 0.04819462704779629),
 (49, 0.016964719517051148),
 (50, 0.03440144418821104),
 (51, 0.033441756490388705),
 (52, 0.06413382012405279),
 (53, 0.031443542529842286),
 (54, 0.01960390731792396),
 (55, 0.02803997286114112),
 (56, 0.10621596598800978),
 (57, 0.047560222967642465),
 (58, 0.0217866273586515),
 (59, 0.04902032032832535),
 (60, 0.020033534619412305),
 (61, 0.06140547505338265),
 (62, 0.012720817342224187),
 (63, 0.02387175135807832),
 (64, 0.030148135522917664),
 (65, 0.03136542917567045),
 (66, 0.014305434570409867),
 (67, 0.04426648766849946),
 (68, 0.035248355163527784),
 (69, 0.033893931816070595),
 (70, 0.027574751441599547),
 (71, 0.028623746492026727),
 (72, 0.03627379328845364),
 (73, 0.014927864349332118),
 (74, 0.04955011403318972),
 (75, 0.032497354850573645),
 (76, 0.036794091049467674),
 (77, 0.012854949877067406),
 (78, 0.019101723405348117),
 (79, 0.03843387372442886),
 (80, 0.04126662132945054),
 (81, 0.04233561171792394),
 (82, 0.045917745044925205),
 (83, 0.06700325465424642),
 (84, 0.030229667810420493),
 (85, 0.0577566673477048),
 (86, 0.025401340318272892),
 (87, 0.05702269273273221),
 (88, 0.024249751405864717),
 (89, 0.02036064567321972),
 (90, 0.01653934491184385),
 (91, 0.06123932176758707),
 (92, 0.03057484208782959),
 (93, 0.023053432551546668),
 (94, 0.11763587978003684),
 (95, 0.06065966310084777),
 (96, 0.023139299365736582),
 (97, 0.035108515318976116),
 (98, 0.024938632162510185),
 (99, 0.021026042643561647),
 (100, 0.01610082127890158),
 (101, 0.02896564536219133),
 (102, 0.0386031007652724),
 (103, 0.030781300705642417),
 (104, 0.0184068471779013),
 (105, 0.013783940150643454),
 (106, 0.025465115945573116),
 (107, 0.046122166209714426),
 (108, 0.05606262967034345),
 (109, 0.022129388995326103),
 (110, 0.04588054410277927),
 (111, 0.0892344480290116),
 (112, 0.03086290992345653),
 (113, 0.02314827705070144),
 (114, 0.02485958380481851),
 (115, 0.030197813978170274),
 (116, 0.0372759124001483),
 (117, 0.02465822866609666),
 (118, 0.015886118616486238),
 (119, 0.017086011588178688),
 (120, 0.018169263705776983),
 (121, 0.02610447320829918),
 (122, 0.025848129725918732),
 (123, 0.04217059780219286),
 (124, 0.023402479009319223),
 (125, 0.0352993114733637),
 (126, 0.029692965649596472),
 (127, 0.05736083195655343),
 (128, 0.01971261326613108),
 (129, 0.03487674439965269),
 (130, 0.018081142647738347),
 (131, 0.053810140722183375),
 (132, 0.047427782604338845),
 (133, 0.026496865125022098),
 (134, 0.032031153828917365),
 (135, 0.0332929527579899),
 (136, 0.01161190578495059),
 (137, 0.04138519318070587),
 (138, 0.025083995721018215),
 (139, 0.03599479765816283),
 (140, 0.04491038312668588),
 (141, 0.06854490525073648),
 (142, 0.02015635072226181),
 (143, 0.024708211467500452),
 (144, 0.01646678589109491),
 (145, 0.03120745241618347),
 (146, 0.01891699718722649),
 (147, 0.03797855442848407),
 (148, 0.01602614084981609),
 (149, 0.08066250490267145),
 (150, 0.10192201275331887),
 (151, 0.04116186670028801),
 (152, 0.0195031857156224),
 (153, 0.0424105903773163),
 (154, 0.03583291224452568),
 (155, 0.013711733261175217),
 (156, 0.04618896304203952),
 (157, 0.011312244773567624),
 (158, 0.06406242347813064),
 (159, 0.010721964596708752),
 (160, 0.043097425122520294),
 (161, 0.0025404989943826266),
 (162, 0.03610778565897495),
 (163, 0.03408942837626618),
 (164, 0.02031460298058226),
 (165, 0.02529716537459358),
 (166, 0.025368773135322556),
 (167, 0.023914419153450463),
 (168, 0.04729296138560914),
 (169, 0.053890560482542864),
 (170, 0.045539507112157665),
 (171, 0.019182139780962715),
 (172, 0.026227714767140684),
 (173, 0.017895037564836277),
 (174, 0.047291518429146195),
 (175, 0.026496394768382232),
 (176, 0.01465111756634311),
 (177, 0.007988133538327634),
 (178, 0.011651819385712572),
 (179, 0.01829844532256943),
 (180, 0.01909979490177457),
 (181, 0.021796533199615043),
 (182, 0.07015591822300334),
 (183, 0.028900264639834514),
 (184, 0.07817526709237174),
 (185, 0.015896536067696906),
 (186, 0.022222723496677615),
 (187, 0.042088834856090634),
 (188, 0.019246836543401553),
 (189, 0.022329691985852156),
 (190, 0.02814030117313133),
 (191, 0.020516276199799004),
 (192, 0.02673341029205647),
 (193, 0.019092719847003104),
 (194, 0.003744624845736365),
 (195, 0.031816935198245785),
 (196, 0.02982136876765693),
 (197, 0.03383705267941171),
 (198, 0.026897466815879928),
 (199, 0.05022960890118847),
 (200, 0.03846242930328746),
 (201, 0.016531344116273175),
 (202, 0.015536883584638669),
 (203, 0.018660669945370915),
 (204, 0.013150291507970934),
 (205, 0.023909914933934802),
 (206, 0.06931141114974664),
 (207, 0.019146791232154778),
 (208, 0.018005885485598276),
 (209, 0.007222203225617008),
 (210, 0.019301792954052387),
 (211, 0.01632848558113518),
 (212, 0.03864799535963353),
 (213, 0.02806183693164248),
 (214, 0.01818300909791548),
 (215, 0.036107245901168726),
 (216, 0.014976818644335362),
 (217, 0.03426334984484118),
 (218, 0.012407860981203635),
 (219, 0.01895504891885474),
 (220, 0.05749116463856345),
 (221, 0.015431626665386573),
 (222, 0.07042231098222608),
 (223, 0.06692218797114974),
 (224, 0.041321031665142526),
 (225, 0.030338953186884548),
 (226, 0.006772182643536126),
 (227, 0.01905459724402575),
 (228, 0.06160758207130872),
 (229, 0.029267090430365437),
 (230, 0.04365999499484372),
 (231, 0.020986970161503308),
 (232, 0.030998298876282988),
 (233, 0.02357336826300582),
 (234, 0.03359371427165062),
 (235, 0.020749199655877723),
 (236, 0.06061095139949443),
 (237, 0.015749606611178236),
 (238, 0.04074911133572844),
 (239, 0.09298633526862596),
 (240, 0.024489617417756248),
 (241, 0.04420122758469275),
 (242, 0.02035609777087316),
 (243, 0.02358428932416718),
 (244, 0.012256101775764743),
 (245, 0.04268785738940792),
 (246, 0.03264120280708219),
 (247, 0.015982534106584664),
 (248, 0.009627298299888287),
 (249, 0.015395764691677463),
 (250, 0.013675610109061709),
 (251, 0.014349967282134238),
 (252, 0.01736660306445662),
 (253, 0.03586217753568884),
 (254, 0.02160157223885801),
 (255, 0.010060228153387262),
 (256, 0.029767088262885114),
 (257, 0.0313260785073345),
 (258, 0.024673861138795494),
 (259, 0.012794942832664536),
 (260, 0.06949189435121753),
 (261, 0.018787977494666167),
 (262, 0.023386577087685774),
 (263, 0.019018938250064205),
 (264, 0.016002254513116067),
 (265, 0.02388100814276053),
 (266, 0.02003196464375977),
 (267, 0.0215005290017558),
 (268, 0.012270461908142313),
 (269, 0.013677220272132456),
 (270, 0.034857554287686776),
 (271, 0.030122147539189605),
 (272, 0.006593585070113473),
 (273, 0.008283306236774812),
 (274, 0.03512404739371985),
 (275, 0.04978309163934047),
 (276, 0.02344024423000109),
 (277, 0.031006051688883103),
 (278, 0.08215064614600144),
 (279, 0.043602418066219076),
 (280, 0.014459900492181462),
 (281, 0.03736245482507857),
 (282, 0.015189314704418545),
 (283, 0.009242226848175364),
 (284, 0.01166974629523787),
 (285, 0.022715521812629716),
 (286, 0.023599793740151268),
 (287, 0.00841219793411083),
 (288, 0.018325357851447267),
 (289, 0.010121553113157),
 (290, 0.035611230006505463),
 (291, 0.028239930826360445),
 (292, 0.03698590371231573),
 (293, 0.0059914587729935935),
 (294, 0.03534388349342923),
 (295, 0.017035950430811082),
 (296, 0.0364364401630462),
 (297, 0.014262190156354299),
 (298, 0.011001098577979039),
 (299, 0.021270272991990687),
 (300, 0.08768101284616094),
 (301, 0.08013360295025759),
 (302, 0.024381142823723008),
 (303, 0.016708005609016495),
 (304, 0.02973975196978829),
 (305, 0.11552636522225128),
 (306, 0.043074416410513294),
 (307, 0.057067911662822664),
 (308, 0.008433644018270573),
 (309, 0.018285249928770647),
 (310, 0.0378952050934623),
 (311, 0.0732927414270661),
 (312, 0.07111153845509809),
 (313, 0.021391308553705655),
 (314, 0.013865608325995725),
 (315, 0.024061979574404986),
 (316, 0.02472902395922165),
 (317, 0.005743832088636325),
 (318, 0.01826950719372333),
 (319, 0.012371574845800069),
 (320, 0.02419122823349713),
 (321, 0.009587177235711685),
 (322, 0.05029350981988193),
 (323, 0.023185392422582017),
 (324, 0.03449028454812133),
 (325, 0.021226366285984816),
 (326, 0.01846494238631661),
 (327, 0.01084071312822532),
 (328, 0.011953925526137617),
 (329, 0.04988466579287453),
 (330, 0.03661943817469696),
 (331, 0.03302616167080612),
 (332, 0.025453803813416172),
 (333, 0.015758985276898587),
 (334, 0.03842484432353399),
 (335, 0.02633438372249891),
 (336, 0.021352510325179198),
 (337, 0.017507022741879926),
 (338, 0.0174474603406347),
 (339, 0.017009532665592554),
 (340, 0.024165479469666934),
 (341, 0.03846159229894407),
 (342, 0.0807503565126366),
 (343, 0.01441506613109144),
 (344, 0.013999016350616985),
 (345, 0.02225843231641342),
 (346, 0.026894791281662164),
 (347, 0.020993794773811914),
 (348, 0.009337854474795862),
 (349, 0.011769319901412079),
 (350, 0.02814664404481523),
 (351, 0.016175786850132733),
 (352, 0.011251783401882483),
 (353, 0.02904752924828423),
 (354, 0.010875514606648401),
 (355, 0.01385392959027679),
 (356, 0.012086670401309478),
 (357, 0.006692239048131424),
 (358, 0.027398538650417876),
 (359, 0.01626522879384118),
 (360, 0.027415806765535553),
 (361, 0.011803632691824897),
 (362, 0.04788806710263888),
 (363, 0.04805274159785609),
 (364, 0.01303824157243205),
 (365, 0.0758269146648279),
 (366, 0.025203291960710333),
 (367, 0.03902965629243808),
 (368, 0.015571820304162789),
 (369, 0.12671850559171088),
 (370, 0.0172509537159696),
 (371, 0.014754795900949459),
 (372, 0.04325824370924152),
 (373, 0.08225260798359771),
 (374, 0.022398744701391395),
 (375, 0.030088096108128785),
 (376, 0.01906555874526989),
 (377, 0.036504875406671994),
 (378, 0.008557378384071671),
 (379, 0.032987312706859256),
 (380, 0.013057635325617952),
 (381, 0.015948234112534456),
 (382, 0.015507067284013652),
 (383, 0.02120530696329549),
 (384, 0.02485938529278876),
 (385, 0.01456842726358988),
 (386, 0.014445801940333309),
 (387, 0.030343958632456182),
 (388, 0.008913729524145582),
 (389, 0.03844771646057026),
 (390, 0.013441686970391841),
 (391, 0.030072959613689866),
 (392, 0.016175596128318506),
 (393, 0.015940321958250524),
 (394, 0.02469857274978149),
 (395, 0.009351727857456886),
 (396, 0.01899383197111168),
 (397, 0.012119869224989704),
 (398, 0.008409001669207921),
 (399, 0.014806972115905719),
 (400, 0.03205399655694963),
 (401, 0.053573828797600254),
 (402, 0.030994204909696267),
 (403, 0.0345428475835477),
 (404, 0.051358473754844425),
 (405, 0.017798730183173402),
 (406, 0.028733234883032983),
 (407, 0.020027555214611335),
 (408, 0.017939262780590527),
 (409, 0.014733194783135686),
 (410, 0.021469640877125093),
 (411, 0.01918994706729885),
 (412, 0.037775689222279175),
 (413, 0.022235654782788727),
 (414, 0.025411543941851064),
 (415, 0.03645008267793118),
 (416, 0.01369786737782289),
 (417, 0.049672641354635415),
 (418, 0.024896216317916175),
 (419, 0.03779131507261871),
 (420, 0.07466602035122885),
 (421, 0.026066762802884065),
 (422, 0.033072022983749505),
 (423, 0.03591303725342579),
 (424, 0.021797253747757993),
 (425, 0.02373879898746965),
 (426, 0.02588837542940668),
 (427, 0.015242768387164787),
 (428, 0.030611872055964797),
 (429, 0.007223691066865091),
 (430, 0.01768416093902516),
 (431, 0.01554244372045092),
 (432, 0.11400517386383191),
 (433, 0.005979360012944314),
 (434, 0.01506265240458075),
 (435, 0.012883336461477967),
 (436, 0.011883512324727372),
 (437, 0.024513989110387945),
 (438, 0.010686063741758142),
 (439, 0.03543754902616547),
 (440, 0.0277319468348817),
 (441, 0.019993386029385617),
 (442, 0.02287788013906212),
 (443, 0.020381410140363328),
 (444, 0.01649698634994344),
 (445, 0.006891896282862956),
 (446, 0.018968007095963964),
 (447, 0.021938285918375284),
 (448, 0.024811175959215885),
 (449, 0.014867759538329868),
 (450, 0.018642207583321337),
 (451, 0.022286608205255676),
 (452, 0.0066983189175244765),
 (453, 0.02272847054177598),
 (454, 0.03298484056856658),
 (455, 0.01739876465273637),
 (456, 0.04341469401003581),
 (457, 0.020722304315937037),
 (458, 0.013229780007661746),
 (459, 0.012044779543924968),
 (460, 0.01930236980504077),
 (461, 0.10337087828075815),
 (462, 0.03261195839664138),
 (463, 0.039911191105095646),
 (464, 0.010914289076966507),
 (465, 0.00787056224285767),
 (466, 0.05279234116622232),
 (467, 0.04220576258334548),
 (468, 0.02753173036854714),
 (469, 0.0300170952294293),
 (470, 0.020690023640837257),
 (471, 0.02474102095620585),
 (472, 0.020015201589616182),
 (473, 0.04519468846748764),
 (474, 0.015372374764790482),
 (475, 0.04850464460391842),
 (476, 0.02838200716351905),
 (477, 0.0200861279473736),
 (478, 0.029531789779072247),
 (479, 0.021179269800015596),
 (480, 0.030031450609557708),
 (481, 0.009328571115046976),
 (482, 0.0031453735155688107),
 (483, 0.04848273505679318),
 (484, 0.011956199146969219),
 (485, 0.02101175832240358),
 (486, 0.03322705592492167),
 (487, 0.04723767017361667),
 (488, 0.035296510389131966),
 (489, 0.02296036308683335),
 (490, 0.016749417032817862),
 (491, 0.015505167167736152),
 (492, 0.015257046828912981),
 (493, 0.019335591033108404),
 (494, 0.01864103310438158),
 (495, 0.040888209542831566),
 (496, 0.027418876829669973),
 (497, 0.01358628914925012),
 (498, 0.02106089492071559),
 (499, 0.010448971591267672),
 (500, 0.009817487462237689),
 (501, 0.03427875246869987),
 (502, 0.08126436082702479),
 (503, 0.02408004713589097),
 (504, 0.004384016868654366),
 (505, 0.04307295863722731),
 (506, 0.005487502537897031),
 (507, 0.06376119342324647),
 (508, 0.017939064509308197),
 (509, 0.015709335119100665),
 (510, 0.042032700599297076),
 (511, 0.020617826446057665),
 (512, 0.018334812201952093),
 (513, 0.027151798188459267),
 (514, 0.01757070875628892),
 (515, 0.011273253531944711),
 (516, 0.029488908479835516),
 (517, 0.03510699186806164),
 (518, 0.036908588458695955),
 (519, 0.008544041633075086),
 (520, 0.0019798878587862813),
 (521, 0.008206284646278221),
 (522, 0.021234431157009986),
 (523, 0.02396177660696722),
 (524, 0.014001034361274941),
 (525, 0.03306913975683885),
 (526, 0.005667222044360185),
 (527, 0.015228968218412348),
 (528, 0.017756526096899813),
 (529, 0.10572875203470017),
 (530, 0.01428852717767494),
 (531, 0.048020221670810014),
 (532, 0.04446152336610128),
 (533, 0.02729567335927205),
 (534, 0.0075991702999218536),
 (535, 0.04877976561282251),
 (536, 0.03758566168393247),
 (537, 0.02277968953903095),
 (538, 0.022675280727204122),
 (539, 0.07623546261612442),
 (540, 0.01992181332919239),
 (541, 0.07920281783020622),
 (542, 0.03313220221159379),
 (543, 0.027692657753723954),
 (544, 0.02376975967375565),
 (545, 0.01292447406446781),
 (546, 0.014690690329540118),
 (547, 0.02679814825574571),
 (548, 0.01735938969001131),
 (549, 0.1052651175838697),
 (550, 0.013863819572388386),
 (551, 0.016673626826838647),
 (552, 0.006102072673699619),
 (553, 0.021887898276717072),
 (554, 0.013414058776754546),
 (555, 0.01724100120694333),
 (556, 0.01595884692340568),
 (557, 0.05921584696438151),
 (558, 0.010307200792846583),
 (559, 0.0024913882417890473),
 (560, 0.013954993581335208),
 (561, 0.009509363177402412),
 (562, 0.02977383101756516),
 (563, 0.024273070404384915),
 (564, 0.009408461242514878),
 (565, 0.01976195222480757),
 (566, 0.020450388465918696),
 (567, 0.008782940020216342),
 (568, 0.05668750077105238),
 (569, 0.030670794897127908),
 (570, 0.04263806770891258),
 (571, 0.02067764925261926),
 (572, 0.029887086018270437),
 (573, 0.01396140444335565),
 (574, 0.029745371272656966),
 (575, 0.03545547330756379),
 (576, 0.025117095983635176),
 (577, 0.06392251086954787),
 (578, 0.026609166409471727),
 (579, 0.04335107375115118),
 (580, 0.021668870770809544),
 (581, 0.04070006895460512),
 (582, 0.07799786597665702),
 (583, 0.022972616782278618),
 (584, 0.037055362292800986),
 (585, 0.037491932216048476),
 (586, 0.04893677182522564),
 (587, 0.03229144940900021),
 (588, 0.029905691066924867),
 (589, 0.029539816084776814),
 (590, 0.012051268606803195),
 (591, 0.040226740397680226),
 (592, 0.039742089140575095),
 (593, 0.01963355501059969),
 (594, 0.01642885131598256),
 (595, 0.06749820961377359),
 (596, 0.04208281772151937),
 (597, 0.02304438593198948),
 (598, 0.010490626094546141),
 (599, 0.04224098132079428),
 (600, 0.03510163901238064),
 (601, 0.02591566771872764),
 (602, 0.012612955522592242),
 (603, 0.02296755331658427),
 (604, 0.013995664965880249),
 (605, 0.019981987171656633),
 (606, 0.00679614518286039),
 (607, 0.027601999329731754),
 (608, 0.008545921568841125),
 (609, 0.024116102201149393),
 (610, 0.030544258104546147),
 (611, 0.024108916042111836),
 (612, 0.03838321447638535),
 (613, 0.005552871765178186),
 (614, 0.033272048762714224),
 (615, 0.009992109252590463),
 (616, 0.010656514218877184),
 (617, 0.04265274813846704),
 (618, 0.03181155968789426),
 (619, 0.01347007620700153),
 (620, 0.014223814641387462),
 (621, 0.019709763755590377),
 (622, 0.029016819944973855),
 (623, 0.009206696756108053),
 (624, 0.022064549244556045),
 (625, 0.0062169677651360295),
 (626, 0.03898472273145588),
 (627, 0.02740677093467772),
 (628, 0.04709912065238995),
 (629, 0.019992250632411748),
 (630, 0.0145145938835119),
 (631, 0.020832554418359787),
 (632, 0.04085002083650667),
 (633, 0.03336359124664137),
 (634, 0.08857000273585686),
 (635, 0.02224457191941209),
 (636, 0.018947527466014205),
 (637, 0.020839544149056467),
 (638, 0.01449230085156825),
 (639, 0.008572194613325895),
 (640, 0.01341342357904739),
 (641, 0.029004374241655605),
 (642, 0.03614502680863947),
 (643, 0.06343048291086067),
 (644, 0.020641625164135206),
 (645, 0.017048221926595285),
 (646, 0.038711199390762965),
 (647, 0.0231969036851679),
 (648, 0.007830658173561895),
 (649, 0.005733227881137195),
 (650, 0.014581740359796506),
 (651, 0.00883233278233189),
 (652, 0.010773895487460189),
 (653, 0.009191771031761203),
 (654, 0.03062856245222891),
 (655, 0.024727707115979936),
 (656, 0.027033036970350283),
 (657, 0.038226545555207915),
 (658, 0.019964259688794915),
 (659, 0.017258623404492763),
 (660, 0.014540488587764617),
 (661, 0.08150071208756304),
 (662, 0.011737355087548355),
 (663, 0.016427766835504447),
 (664, 0.023855028141369285),
 (665, 0.026389998321794776),
 (666, 0.043897986745207396),
 (667, 0.014029825631146183),
 (668, 0.023577304826994046),
 (669, 0.003736863183177813),
 (670, 0.01823415865667496),
 (671, 0.04152656020502774),
 (672, 0.03818760463462223),
 (673, 0.026933064635037668),
 (674, 0.02354869005742903),
 (675, 0.03682903362902723),
 (676, 0.023164297560078494),
 (677, 0.03996877123342949),
 (678, 0.03889127116816679),
 (679, 0.023038966490048364),
 (680, 0.04839541090867956),
 (681, 0.021066738068132276),
 (682, 0.015920405595905143),
 (683, 0.02193523276394072),
 (684, 0.002910754163145242),
 (685, 0.010613711095501747),
 (686, 0.006460460983221379),
 (687, 0.030596842335092817),
 (688, 0.018294438592531364),
 (689, 0.01932257967172533),
 (690, 0.017379500179550717),
 (691, 0.03201015862008169),
 (692, 0.07043143934961782),
 (693, 0.012421702193393013),
 (694, 0.032784542471109804),
 (695, 0.02037716234177155),
 (696, 0.019238590153627673),
 (697, 0.02528895852602528),
 (698, 0.05874148314374591),
 (699, 0.0030656249513031724),
 (700, 0.015224045164994277),
 (701, 0.01691193587000344),
 (702, 0.01890865927458399),
 (703, 0.010888112649386064),
 (704, 0.011403288097900676),
 (705, 0.01722313038389051),
 (706, 0.021581871151184307),
 (707, 0.011268957632665513),
 (708, 0.012400856661785713),
 (709, 0.026859642342434948),
 (710, 0.015660925503984),
 (711, 0.012304916564954771),
 (712, 0.022968824183644675),
 (713, 0.028708995097834568),
 (714, 0.011649591607237428),
 (715, 0.02661935821712893),
 (716, 0.00973679022335087),
 (717, 0.028805126530079755),
 (718, 0.014901731070178469),
 (719, 0.0038052548872363505),
 (720, 0.022805201464504064),
 (721, 0.02040926505830653),
 (722, 0.027033911815902),
 (723, 0.015817555554700064),
 (724, 0.0370534036418434),
 (725, 0.004143330489080224),
 (726, 0.010546515711396146),
 (727, 0.01535975150198422),
 (728, 0.04506873875936035),
 (729, 0.024339271623413566),
 (730, 0.026050269326057474),
 (731, 0.033717667327336436),
 (732, 0.034498665357742535),
 (733, 0.026645746598320023),
 (734, 0.021215392798763905),
 (735, 0.027979125095974507),
 (736, 0.014977411956409416),
 (737, 0.007499479522928285),
 (738, 0.012593259243642713),
 (739, 0.019595139628423727),
 (740, 0.05957521961512596),
 (741, 0.02662921519242058),
 (742, 0.01174613530688488),
 (743, 0.019515875839837687),
 (744, 0.019349244688809598),
 (745, 0.02880375776980524),
 (746, 0.024349534938843162),
 (747, 0.029109361793110203),
 (748, 0.014740110808103803),
 (749, 0.010616469922855492),
 (750, 0.040123094929668444),
 (751, 0.010110933690750357),
 (752, 0.018626067939124406),
 (753, 0.021088843997528698),
 (754, 0.057785152524749694),
 (755, 0.02856467268396221),
 (756, 0.005624537439257593),
 (757, 0.011033938560202496),
 (758, 0.02985689565874055),
 (759, 0.01637046521170977),
 (760, 0.0087297605697185),
 (761, 0.027111475119724022),
 (762, 0.007098508975126657),
 (763, 0.0033326327394167955),
 (764, 0.030875334152935398),
 (765, 0.011171641137238213),
 (766, 0.00729415027703191),
 (767, 0.016838190812288337),
 (768, 0.040710787255430175),
 (769, 0.0454033123681367),
 (770, 0.07365899061826771),
 (771, 0.002781395898716673),
 (772, 0.008844013796183896),
 (773, 0.040925360521593755),
 (774, 0.007803294040117462),
 (775, 0.09104826830357698),
 (776, 0.023779743833080826),
 (777, 0.025083924555338352),
 (778, 0.03504457062325418),
 (779, 0.02202918942496398),
 (780, 0.00087513952362612),
 (781, 0.015355320645073833),
 (782, 0.034405077009869035),
 (783, 0.004008041446583098),
 (784, 0.028891170679189893),
 (785, 0.05374403354842791),
 (786, 0.029212579287578314),
 (787, 0.06550613883163091),
 (788, 0.01854923118039911),
 (789, 0.006445995121851379),
 (790, 0.036265381651560756),
 (791, 0.02773644177681096),
 (792, 0.01877684759451981),
 (793, 0.033582969513966325),
 (794, 0.02828311437325491),
 (795, 0.04050242641244881),
 (796, 0.0145879619313775),
 (797, 0.019146051972503898),
 (798, 0.002699966681716085),
 (799, 0.03338135733060204),
 (800, 0.037789474905939216),
 (801, 0.001835074031821286),
 (802, 0.0060676760845845695),
 (803, 0.011869324735754862),
 (804, 0.024408590069157805),
 (805, 0.025921677315784174),
 (806, 0.018537786393386876),
 (807, 0.01311716452521785),
 (808, 0.013651311948870724),
 (809, 0.01602175745562278),
 (810, 0.012033398195656818),
 (811, 0.014347446283009494),
 (812, 0.06912595755579197),
 (813, 0.036366138858640144),
 (814, 0.019781854871078173),
 (815, 0.00989758296618556),
 (816, 0.015189757903397456),
 (817, 0.02288551699159419),
 (818, 0.014223280454884692),
 (819, 0.0047308934256548914),
 (820, 0.02916816290477254),
 (821, 0.015325532047050165),
 (822, 0.01480306600629423),
 (823, 0.026984301864670032),
 (824, 0.015956899499526854),
 (825, 0.00869869608068252),
 (826, 0.006351091914124819),
 (827, 0.02459035056566522),
 (828, 0.01745386569669186),
 (829, 0.011247263275331616),
 (830, 0.021289314857473384),
 (831, 0.03137112190793036),
 (832, 0.021444647859789494),
 (833, 0.01903188555413969),
 (834, 0.02344901725325689),
 (835, 0.029191056205226558),
 (836, 0.0341277250859267),
 (837, 0.014032656601083895),
 (838, 0.09757133989919006),
 (839, 0.013950036187821604),
 (840, 0.014372060430132557),
 (841, 0.015572631764983524),
 (842, 0.015479802074723905),
 (843, 0.018130678426879085),
 (844, 0.015117333380382899),
 (845, 0.017609662920444302),
 (846, 0.02169714492763737),
 (847, 0.07201519341083218),
 (848, 0.026899238129959015),
 (849, 0.015312170360593229),
 (850, 0.015583672693836693),
 (851, 0.01986387555935754),
 (852, 0.017848364650081296),
 (853, 0.00838462185681867),
 (854, 0.0582483687220986),
 (855, 0.053915588395073474),
 (856, 0.06697510731488632),
 (857, 0.027571124410813105),
 (858, 0.0295367455377082),
 (859, 0.027965336532772705),
 (860, 0.022739253177423754),
 (861, 0.025296563832294547),
 (862, 0.021850483117521663),
 (863, 0.033247645417284824),
 (864, 0.01875971542713926),
 (865, 0.009254949652830243),
 (866, 0.009581903349535733),
 (867, 0.008652766706774336),
 (868, 0.01485784689812066),
 (869, 0.020358667217887608),
 (870, 0.04927899908539313),
 (871, 0.04189958981824874),
 (872, 0.021086594448511256),
 (873, 0.017088281588180338),
 (874, 0.028274078432345376),
 (875, 0.0328993801563672),
 (876, 0.00489966533902533),
 (877, 0.01630974645472005),
 (878, 0.028882774984101585),
 (879, 0.012571281030001),
 (880, 0.011892905531155235),
 (881, 0.008033249982883598),
 (882, 0.013777721556320642),
 (883, 0.019912656946599917),
 (884, 0.011224454874318134),
 (885, 0.015419813209501018),
 (886, 0.025014204345955603),
 (887, 0.020425739244164444),
 (888, 0.019209278449335117),
 (889, 0.054806530334396954),
 (890, 0.01011549045606485),
 (891, 0.010610199088878714),
 (892, 0.007391161767637431),
 (893, 0.018973268971141204),
 (894, 0.04017308050085344),
 (895, 0.010347568555013335),
 (896, 0.03913510541371239),
 (897, 0.036919884217209716),
 (898, 0.020795466988847402),
 (899, 0.021307466948197094),
 (900, 0.02922928768954191),
 (901, 0.027961917661503542),
 (902, 0.007313187249765591),
 (903, 0.016628172449555872),
 (904, 0.00995387392252383),
 (905, 0.007319216546747252),
 (906, 0.0040310365015524706),
 (907, 0.012052885476292534),
 (908, 0.03405012188699481),
 (909, 0.015546834229542658),
 (910, 0.01181711662703041),
 (911, 0.013471802910821826),
 (912, 0.007266321452724446),
 (913, 0.004844534454414821),
 (914, 0.025232809670311544),
 (915, 0.022799770360861046),
 (916, 0.013399697073383635),
 (917, 0.015984632015196624),
 (918, 0.024443090144278486),
 (919, 0.01609567573528744),
 (920, 0.028270128887836633),
 (921, 0.023280460594699653),
 (922, 0.02647331604220938),
 (923, 0.015084249936847462),
 (924, 0.0036895096989024642),
 (925, 0.032295728061468826),
 (926, 0.031960558906877205),
 (927, 0.01721905188786793),
 (928, 0.007008697800881938),
 (929, 0.04401139465999138),
 (930, 0.03000971763550027),
 (931, 0.025991955871372145),
 (932, 0.04025551239056753),
 (933, 0.03234372676249425),
 (934, 0.022395938597229686),
 (935, 0.02404990354384484),
 (936, 0.01046565565000715),
 (937, 0.01772627353053051),
 (938, 0.020151101517378672),
 (939, 0.04758040114276479),
 (940, 0.012131201186225201),
 (941, 0.01662147123688354),
 (942, 0.11874913786089852),
 (943, 0.010831704598486014),
 (944, 0.01644121657439388),
 (945, 0.009579106169530921),
 (946, 0.0275537171976053),
 (947, 0.015465054471489246),
 (948, 0.021218528650001442),
 (949, 0.024130392202305503),
 (950, 0.018850651708152262),
 (951, 0.04722683078657635),
 (952, 0.015729480863610326),
 (953, 0.01586456613343968),
 (954, 0.007572715750427433),
 (955, 0.024074239189142223),
 (956, 0.02454103335082805),
 (957, 0.007205552436925145),
 (958, 0.007307706116990014),
 (959, 0.017996772365274003),
 (960, 0.022156593198066052),
 (961, 0.01104353263252637),
 (962, 0.023853259836482413),
 (963, 0.02816457152767386),
 (964, 0.029634520880921236),
 (965, 0.01973701966560713),
 (966, 0.00823427677401235),
 (967, 0.003481723784929524),
 (968, 0.0017165209365148436),
 (969, 0.034251906523115674),
 (970, 0.010474446278083027),
 (971, 0.02101520346336553),
 (972, 0.06376543262751978),
 (973, 0.01008442400874671),
 (974, 0.007070690736314824),
 (975, 0.019749290345759424),
 (976, 0.04891915141910707),
 (977, 0.05626208028521523),
 (978, 0.022361458222796598),
 (979, 0.028323694643346813),
 (980, 0.013068747031935283),
 (981, 0.022846717298420235),
 (982, 0.02910852453090264),
 (983, 0.0015709723035583825),
 (984, 0.04228064960727302),
 (985, 0.04156811670361117),
 (986, 0.016709327050491826),
 (987, 0.014941287422338276),
 (988, 0.017085119291010805),
 (989, 0.024822526493636234),
 (990, 0.034935266001833436),
 (991, 0.011414540456477277),
 (992, 0.0058093328245843465),
 (993, 0.022609084480401317),
 (994, 0.031807597788334724),
 (995, 0.019967406006000193),
 (996, 0.016447645768474784),
 (997, 0.0076203554187458875),
 (998, 0.0034861773363835113),
 (999, 0.05660527489033176),
 ...]
In [200]:
len(similarity_score)
Out[200]:
4803
In [201]:
sorted_similar_movies = sorted(similarity_score, key = lambda x:x[1], reverse = True) 
sorted_similar_movies
Out[201]:
[(0, 0.9999999999999999),
 (1531, 0.14437139678653407),
 (3158, 0.14281129605222478),
 (369, 0.12671850559171088),
 (942, 0.11874913786089852),
 (94, 0.11763587978003684),
 (1914, 0.11620626722952893),
 (3604, 0.11583919588730432),
 (305, 0.11552636522225128),
 (432, 0.11400517386383191),
 (1275, 0.11170593366157423),
 (1759, 0.10730774984152529),
 (56, 0.10621596598800978),
 (529, 0.10572875203470017),
 (549, 0.1052651175838697),
 (461, 0.10337087828075815),
 (43, 0.10290908767260759),
 (1951, 0.10238675282437247),
 (150, 0.10192201275331887),
 (838, 0.09757133989919006),
 (1341, 0.09633438899358648),
 (1213, 0.09616853635216918),
 (1354, 0.09585296970260657),
 (239, 0.09298633526862596),
 (3730, 0.0922776063723108),
 (47, 0.09193018440619648),
 (775, 0.09104826830357698),
 (2403, 0.09036662679498701),
 (3668, 0.08987801293837264),
 (3105, 0.08985565633226378),
 (1217, 0.0892958546830366),
 (111, 0.0892344480290116),
 (634, 0.08857000273585686),
 (300, 0.08768101284616094),
 (3439, 0.08538037005158215),
 (1318, 0.08447271723435683),
 (4332, 0.08434313012221334),
 (373, 0.08225260798359771),
 (278, 0.08215064614600144),
 (661, 0.08150071208756304),
 (502, 0.08126436082702479),
 (1352, 0.08116512319945465),
 (3534, 0.08101547435728884),
 (342, 0.0807503565126366),
 (149, 0.08066250490267145),
 (301, 0.08013360295025759),
 (27, 0.07939222531276342),
 (541, 0.07920281783020622),
 (184, 0.07817526709237174),
 (582, 0.07799786597665702),
 (1053, 0.07736943390277606),
 (3143, 0.07679538169474359),
 (2696, 0.07639012786029215),
 (539, 0.07623546261612442),
 (365, 0.0758269146648279),
 (1892, 0.0755888618564168),
 (2198, 0.07551969087358347),
 (36, 0.07532212717741701),
 (1245, 0.07472176753226156),
 (1804, 0.07471198502321233),
 (420, 0.07466602035122885),
 (1959, 0.07425074335020393),
 (4, 0.0739395126650764),
 (2109, 0.0738724664482541),
 (770, 0.07365899061826771),
 (311, 0.0732927414270661),
 (1092, 0.0730510686470124),
 (1294, 0.07299481901533487),
 (847, 0.07201519341083218),
 (312, 0.07111153845509809),
 (3572, 0.07052823612684081),
 (692, 0.07043143934961782),
 (222, 0.07042231098222608),
 (1633, 0.07038620590329453),
 (182, 0.07015591822300334),
 (260, 0.06949189435121753),
 (206, 0.06931141114974664),
 (1326, 0.06912991525956572),
 (812, 0.06912595755579197),
 (1796, 0.06869186789670055),
 (141, 0.06854490525073648),
 (2060, 0.0679331203829606),
 (1644, 0.06791431612143084),
 (1922, 0.06765378193696069),
 (595, 0.06749820961377359),
 (46, 0.06744633416730697),
 (3056, 0.06713690388550682),
 (83, 0.06700325465424642),
 (856, 0.06697510731488632),
 (1372, 0.0669580467826982),
 (3184, 0.06694662556891488),
 (223, 0.06692218797114974),
 (2967, 0.06684537520827258),
 (1473, 0.06672022765879046),
 (787, 0.06550613883163091),
 (2636, 0.06548194807859219),
 (31, 0.0647166822528274),
 (1650, 0.06453183615509865),
 (2015, 0.06440633402750373),
 (52, 0.06413382012405279),
 (158, 0.06406242347813064),
 (2424, 0.063971607277518),
 (577, 0.06392251086954787),
 (1099, 0.06388371369626865),
 (2995, 0.0637987663030963),
 (972, 0.06376543262751978),
 (507, 0.06376119342324647),
 (643, 0.06343048291086067),
 (2990, 0.06263020119937841),
 (1178, 0.06257787565303174),
 (2433, 0.06254089659942196),
 (2361, 0.06194529533512906),
 (228, 0.06160758207130872),
 (61, 0.06140547505338265),
 (1448, 0.061253301155044695),
 (91, 0.06123932176758707),
 (1513, 0.060928674009051276),
 (1274, 0.06080461022929092),
 (2350, 0.06072386623800452),
 (95, 0.06065966310084777),
 (1999, 0.06063834181845006),
 (236, 0.06061095139949443),
 (2114, 0.06052008197429507),
 (2244, 0.06027454247796212),
 (3626, 0.060224683170407155),
 (4039, 0.059659853471095585),
 (740, 0.05957521961512596),
 (2500, 0.059389315505869754),
 (7, 0.05924704890301167),
 (557, 0.05921584696438151),
 (4644, 0.05905592720147727),
 (4042, 0.05898803711709299),
 (1649, 0.0589186433559723),
 (4276, 0.05874607957506782),
 (698, 0.05874148314374591),
 (2578, 0.058529704468366806),
 (2964, 0.058304781045661655),
 (854, 0.0582483687220986),
 (3624, 0.05818440943663082),
 (3607, 0.05782410478044247),
 (1259, 0.0578112941181027),
 (1172, 0.05779541670365319),
 (754, 0.057785152524749694),
 (85, 0.0577566673477048),
 (3214, 0.05774283857131703),
 (1568, 0.0575356641756362),
 (220, 0.05749116463856345),
 (127, 0.05736083195655343),
 (2678, 0.05734539998148589),
 (1279, 0.05723457836895435),
 (2027, 0.05714416355745687),
 (2327, 0.05714140838623831),
 (307, 0.057067911662822664),
 (87, 0.05702269273273221),
 (568, 0.05668750077105238),
 (999, 0.05660527489033176),
 (2827, 0.056532789469172715),
 (3098, 0.05651636515345408),
 (977, 0.05626208028521523),
 (3724, 0.056069187594794276),
 (2427, 0.0560648972979572),
 (108, 0.05606262967034345),
 (2391, 0.0559673574768749),
 (2048, 0.05547653740766437),
 (2550, 0.055184644322064956),
 (1817, 0.05508154487803611),
 (2129, 0.05480742798986659),
 (889, 0.054806530334396954),
 (3427, 0.05469925550826691),
 (4108, 0.05462913507187715),
 (1117, 0.05447920653289766),
 (1395, 0.05443872259837792),
 (2614, 0.05440513771079898),
 (1528, 0.05424975954356314),
 (26, 0.05403290163516432),
 (3195, 0.05396494578642679),
 (3764, 0.05395245118096483),
 (41, 0.05394599328399501),
 (1163, 0.05392394393312388),
 (855, 0.053915588395073474),
 (169, 0.053890560482542864),
 (14, 0.05386944574093818),
 (131, 0.053810140722183375),
 (1068, 0.053802733368888994),
 (785, 0.05374403354842791),
 (1016, 0.053647927603617376),
 (4637, 0.053643362121840885),
 (45, 0.053635257995367926),
 (401, 0.053573828797600254),
 (4016, 0.05343674571630741),
 (4783, 0.05304238837828215),
 (1976, 0.05300797035396249),
 (1078, 0.052882882333974646),
 (466, 0.05279234116622232),
 (1737, 0.052764456674884636),
 (1574, 0.05274920149124366),
 (1110, 0.05273926591423394),
 (3556, 0.05265334600591665),
 (1490, 0.05246120895527019),
 (1491, 0.05244881649166176),
 (2106, 0.05242801318439416),
 (2543, 0.052402775951435096),
 (4149, 0.05233685872379012),
 (3618, 0.052287265810557974),
 (1471, 0.052266957422361385),
 (3172, 0.05214470679254668),
 (1610, 0.05204337498162536),
 (2160, 0.05159982607195397),
 (1201, 0.05151181026144048),
 (2444, 0.05148110864346935),
 (4073, 0.05144385133307294),
 (404, 0.051358473754844425),
 (4376, 0.051339156321108005),
 (1390, 0.051336593024378666),
 (2529, 0.05130696857623507),
 (2278, 0.05128545342004464),
 (1517, 0.050946054429350456),
 (4020, 0.05082613056796066),
 (1001, 0.05073517780839235),
 (3458, 0.05071157101108124),
 (2016, 0.050546902667390356),
 (1265, 0.05045191874465026),
 (1678, 0.05033301470525768),
 (2808, 0.0503144665119492),
 (2103, 0.05031178218660589),
 (322, 0.05029350981988193),
 (4688, 0.05026423141445892),
 (199, 0.05022960890118847),
 (1506, 0.05009992982424671),
 (1175, 0.05009441723881082),
 (3776, 0.04993020852723597),
 (329, 0.04988466579287453),
 (2547, 0.049820952321624944),
 (275, 0.04978309163934047),
 (3516, 0.049760318621728056),
 (2705, 0.04967743996178423),
 (417, 0.049672641354635415),
 (3004, 0.049605928430868494),
 (74, 0.04955011403318972),
 (2127, 0.04948409916876189),
 (870, 0.04927899908539313),
 (4176, 0.04914291495691127),
 (4062, 0.0491041334537571),
 (1468, 0.04905653070168685),
 (1467, 0.049030153891235294),
 (59, 0.04902032032832535),
 (586, 0.04893677182522564),
 (976, 0.04891915141910707),
 (1301, 0.04880687060293457),
 (535, 0.04877976561282251),
 (2138, 0.04861699108884141),
 (475, 0.04850464460391842),
 (2920, 0.048494851727706866),
 (483, 0.04848273505679318),
 (680, 0.04839541090867956),
 (48, 0.04819462704779629),
 (1990, 0.04815695792108554),
 (2860, 0.048126876803470046),
 (1653, 0.0481178749215915),
 (363, 0.04805274159785609),
 (531, 0.048020221670810014),
 (3285, 0.04800993343390053),
 (2047, 0.04798399935574985),
 (1146, 0.047944736410587),
 (362, 0.04788806710263888),
 (1461, 0.047877945043034255),
 (2573, 0.04779836944777074),
 (1028, 0.047644392163373725),
 (2720, 0.04761473407617135),
 (939, 0.04758040114276479),
 (57, 0.047560222967642465),
 (1400, 0.04747344115376549),
 (1523, 0.04747008559951482),
 (2237, 0.04744128608181096),
 (132, 0.047427782604338845),
 (3396, 0.047360077463761745),
 (168, 0.04729296138560914),
 (174, 0.047291518429146195),
 (487, 0.04723767017361667),
 (951, 0.04722683078657635),
 (1707, 0.04722350841932858),
 (628, 0.04709912065238995),
 (1367, 0.04697117931506725),
 (1084, 0.046970438191789254),
 (1358, 0.046803168312500684),
 (3197, 0.0467437368789579),
 (1083, 0.04664420530064828),
 (1957, 0.046490935167411235),
 (1034, 0.046464290128391074),
 (1, 0.046343263192810104),
 (1086, 0.04630318261843408),
 (3014, 0.04627261973560405),
 (156, 0.04618896304203952),
 (1198, 0.0461823341427193),
 (1199, 0.046156385399782666),
 (3549, 0.04614727667230406),
 (1877, 0.046130438337833625),
 (107, 0.046122166209714426),
 (1296, 0.0460992054473903),
 (1913, 0.04605241261079431),
 (2921, 0.04602645136855843),
 (1974, 0.04596648184600187),
 (82, 0.045917745044925205),
 (110, 0.04588054410277927),
 (3062, 0.04584174805685449),
 (1004, 0.04583894235478293),
 (2584, 0.045740823958236795),
 (1802, 0.045660327535560305),
 (1399, 0.045571449006963666),
 (170, 0.045539507112157665),
 (3953, 0.04546284137367218),
 (769, 0.0454033123681367),
 (1272, 0.04533751938512203),
 (3018, 0.04527920217907928),
 (473, 0.04519468846748764),
 (1939, 0.0451295564066948),
 (728, 0.04506873875936035),
 (1984, 0.045013590901858365),
 (3815, 0.04499212516405548),
 (3474, 0.044925568470778665),
 (2541, 0.04491971014547978),
 (140, 0.04491038312668588),
 (2645, 0.04483340982152199),
 (18, 0.04475671029595688),
 (1532, 0.04464340467148701),
 (1709, 0.04464215484568853),
 (4774, 0.04463698472099574),
 (2229, 0.04457663224152001),
 (3948, 0.044508800323382135),
 (2505, 0.04448705494981556),
 (2121, 0.04446978882562752),
 (532, 0.04446152336610128),
 (2829, 0.04441119318417398),
 (2758, 0.04440197531053881),
 (1932, 0.044401050233333635),
 (1319, 0.044371210492097544),
 (2757, 0.04431091965320257),
 (67, 0.04426648766849946),
 (241, 0.04420122758469275),
 (929, 0.04401139465999138),
 (3208, 0.043989319829708266),
 (2341, 0.04398755926800794),
 (3136, 0.04393119289966465),
 (666, 0.043897986745207396),
 (1118, 0.04384960289609052),
 (1735, 0.043832023670735146),
 (2245, 0.043759737946086716),
 (2153, 0.043729471587366384),
 (2314, 0.04372418655035376),
 (230, 0.04365999499484372),
 (279, 0.043602418066219076),
 (2442, 0.04351497769707077),
 (1617, 0.04346269288307466),
 (456, 0.04341469401003581),
 (3950, 0.04339920235444434),
 (3103, 0.04338346764383063),
 (579, 0.04335107375115118),
 (2147, 0.04325853807266067),
 (372, 0.04325824370924152),
 (4339, 0.04320857890347904),
 (1912, 0.04316222136522156),
 (4777, 0.04313298464690599),
 (160, 0.043097425122520294),
 (306, 0.043074416410513294),
 (505, 0.04307295863722731),
 (2053, 0.043072242769876735),
 (2815, 0.042963083010209686),
 (3089, 0.042913717814087),
 (1451, 0.042898734588517916),
 (4593, 0.04277558510033343),
 (245, 0.04268785738940792),
 (1012, 0.04267935234142893),
 (617, 0.04265274813846704),
 (570, 0.04263806770891258),
 (29, 0.04263097317022286),
 (1033, 0.04255580092517979),
 (2991, 0.04241804113166496),
 (153, 0.0424105903773163),
 (81, 0.04233561171792394),
 (1302, 0.04231220580814508),
 (984, 0.04228064960727302),
 (599, 0.04224098132079428),
 (467, 0.04220576258334548),
 (1564, 0.04218623584413421),
 (123, 0.04217059780219286),
 (187, 0.042088834856090634),
 (596, 0.04208281772151937),
 (510, 0.042032700599297076),
 (3710, 0.041972479086153036),
 (871, 0.04189958981824874),
 (1894, 0.04189790010067553),
 (1787, 0.041888417155671945),
 (1784, 0.04186670006871701),
 (2951, 0.041607529264673274),
 (1525, 0.04157686733916438),
 (985, 0.04156811670361117),
 (671, 0.04152656020502774),
 (4222, 0.04149503291762147),
 (2868, 0.0414620127254571),
 (3899, 0.0414437783480095),
 (39, 0.041420395122726016),
 (137, 0.04138519318070587),
 (224, 0.041321031665142526),
 (2654, 0.04126861744004445),
 (80, 0.04126662132945054),
 (151, 0.04116186670028801),
 (2017, 0.041158983231368206),
 (1230, 0.041121055950350024),
 (1434, 0.04111304099230071),
 (1155, 0.04111089083955535),
 (2628, 0.04105926210962266),
 (1023, 0.04103134507965247),
 (773, 0.040925360521593755),
 (2250, 0.04089638992548826),
 (495, 0.040888209542831566),
 (632, 0.04085002083650667),
 (3514, 0.040848801163340505),
 (4661, 0.040830789292234),
 (3072, 0.04081080954765799),
 (1271, 0.04080286906262168),
 (238, 0.04074911133572844),
 (768, 0.040710787255430175),
 (581, 0.04070006895460512),
 (1412, 0.040607142722224376),
 (2753, 0.04053740072923859),
 (3192, 0.04051914382715471),
 (795, 0.04050242641244881),
 (3445, 0.04048782397548141),
 (2029, 0.040432605872215324),
 (3695, 0.040290368769691325),
 (1675, 0.040277488669605774),
 (932, 0.04025551239056753),
 (591, 0.040226740397680226),
 (894, 0.04017308050085344),
 (37, 0.04014167966689432),
 (750, 0.040123094929668444),
 (10, 0.04007264841900668),
 (1100, 0.0400458664281483),
 (2725, 0.04003831309753057),
 (677, 0.03996877123342949),
 (2638, 0.03994189208901049),
 (463, 0.039911191105095646),
 (3432, 0.03990961816342274),
 (4301, 0.03989431618816053),
 (1995, 0.03989186520483141),
 (2876, 0.03984913794343487),
 (3405, 0.03979799870146817),
 (592, 0.039742089140575095),
 (1873, 0.039725557205373296),
 (2724, 0.0396475103112377),
 (2934, 0.039444383548003004),
 (4326, 0.039373593514091164),
 (4331, 0.039223716517668275),
 (1822, 0.03913903908769065),
 (896, 0.03913510541371239),
 (2408, 0.03910174854281897),
 (367, 0.03902965629243808),
 (1322, 0.03901219447524943),
 (2706, 0.03898522875417724),
 (626, 0.03898472273145588),
 (1013, 0.03889722570481937),
 (678, 0.03889127116816679),
 (1850, 0.03881531212571221),
 (4401, 0.03875305046651901),
 (646, 0.038711199390762965),
 (212, 0.03864799535963353),
 (102, 0.0386031007652724),
 (2878, 0.038549779264332056),
 (2352, 0.03852669572836907),
 (3750, 0.038484750021452144),
 (3364, 0.03846354359852033),
 (200, 0.03846242930328746),
 (341, 0.03846159229894407),
 (389, 0.03844771646057026),
 (79, 0.03843387372442886),
 (32, 0.038432612582954405),
 (334, 0.03842484432353399),
 (612, 0.03838321447638535),
 (1456, 0.0383688381749214),
 (2835, 0.038325602619812014),
 (2258, 0.03832371344103533),
 (657, 0.038226545555207915),
 (672, 0.03818760463462223),
 (1373, 0.03818382387352998),
 (2262, 0.038102191846749636),
 (1246, 0.0380967743635199),
 (3419, 0.03804675397977583),
 (1159, 0.03802015853398181),
 (2235, 0.03800283650965988),
 (147, 0.03797855442848407),
 (1005, 0.03796942853128141),
 (2586, 0.037897700960678606),
 (310, 0.0378952050934623),
 (2644, 0.037839507123923144),
 (419, 0.03779131507261871),
 (800, 0.037789474905939216),
 (412, 0.037775689222279175),
 (1672, 0.037754109636327374),
 (2142, 0.03773672690639266),
 (1029, 0.03770461654112915),
 (3087, 0.03770163037603416),
 (1775, 0.03770101635229109),
 (4597, 0.037640243604358456),
 (4321, 0.03763794481774987),
 (2253, 0.03760980653942033),
 (1438, 0.037607788382555477),
 (536, 0.03758566168393247),
 (2381, 0.03754334947303211),
 (3971, 0.03752949306741178),
 (585, 0.037491932216048476),
 (1643, 0.03748875474584798),
 (1277, 0.03748239470280153),
 (1239, 0.03742894641880804),
 (1944, 0.037428135257034575),
 (1821, 0.03741645218237098),
 (3424, 0.037394702549283995),
 (2226, 0.03737487215795048),
 (4384, 0.037372644167961176),
 (4608, 0.03736843365496724),
 (281, 0.03736245482507857),
 (1375, 0.037327268221400436),
 (4448, 0.03729942028218535),
 (116, 0.0372759124001483),
 (1921, 0.037265112695488586),
 (4273, 0.037245944630221475),
 (1067, 0.03717557660611793),
 (1377, 0.03717290810485651),
 (2233, 0.03716984239771268),
 (2642, 0.03714588090903037),
 (2024, 0.03712868884673062),
 (2561, 0.03711773849963437),
 (2247, 0.03705783684136735),
 (584, 0.037055362292800986),
 (724, 0.0370534036418434),
 (4123, 0.037038542018178744),
 (292, 0.03698590371231573),
 (3306, 0.03696350203340801),
 (4263, 0.03692060039498703),
 (897, 0.036919884217209716),
 (3397, 0.03691616613910381),
 (518, 0.036908588458695955),
 (40, 0.03687501932377929),
 (4796, 0.036870481850010184),
 (4406, 0.03685564236970194),
 (2007, 0.03684817847986468),
 (1079, 0.03683715187322795),
 (675, 0.03682903362902723),
 (76, 0.036794091049467674),
 (4465, 0.036772420103522496),
 (3472, 0.036692939492510124),
 (2008, 0.03666557822048781),
 (3482, 0.036659377041615954),
 (2687, 0.036650200689010974),
 (2708, 0.03663878521244978),
 (1920, 0.03663652819331429),
 (330, 0.03661943817469696),
 (1753, 0.03657368516085113),
 (377, 0.036504875406671994),
 (1382, 0.03648727716476413),
 (1611, 0.03646147295450565),
 (1762, 0.0364582153860528),
 (4692, 0.03645193830801355),
 (415, 0.03645008267793118),
 (296, 0.0364364401630462),
 (2357, 0.03642701825873),
 (2755, 0.03640634163848593),
 (1726, 0.0363697317754117),
 (813, 0.036366138858640144),
 (3804, 0.03634997817002858),
 (2066, 0.036330488990018985),
 (1353, 0.036279775423777194),
 (72, 0.03627379328845364),
 (790, 0.036265381651560756),
 (1559, 0.03624052209699209),
 (1168, 0.0362378836616233),
 (3616, 0.03621552049693112),
 (2366, 0.0361936089462814),
 (4649, 0.036188717622760824),
 (1440, 0.036172652722651674),
 (3749, 0.03615583724471309),
 (642, 0.03614502680863947),
 (3751, 0.03614377200692312),
 (4524, 0.03614278790888925),
 (3203, 0.03612754808142479),
 (162, 0.03610778565897495),
 (215, 0.036107245901168726),
 (1997, 0.03609747289733539),
 (1278, 0.036052620596703784),
 (4617, 0.036029757779259264),
 (139, 0.03599479765816283),
 (2986, 0.0359846092428086),
 (1264, 0.0359274127816281),
 (423, 0.03591303725342579),
 (253, 0.03586217753568884),
 (154, 0.03583291224452568),
 (3177, 0.03579342047091603),
 (1158, 0.03578755650592303),
 (1474, 0.03578457511679351),
 (3236, 0.03577239868038874),
 (3833, 0.03576206293600539),
 (3336, 0.035756566699307345),
 (3779, 0.03575565846385733),
 (4286, 0.03574555601540754),
 (2658, 0.03574311955005158),
 (4795, 0.03568873264821246),
 (1298, 0.03567191780949302),
 (4109, 0.03564646007737127),
 (1449, 0.03563620087466874),
 (290, 0.035611230006505463),
 (3498, 0.03557790189929738),
 (2011, 0.035565140463606516),
 (4691, 0.035518078820407833),
 (575, 0.03545547330756379),
 (4679, 0.03544632839887511),
 (439, 0.03543754902616547),
 (2157, 0.035396058297320995),
 (1671, 0.03535328998501387),
 (294, 0.03534388349342923),
 (4106, 0.03532491475828098),
 (3993, 0.03530290289115886),
 (125, 0.0352993114733637),
 (488, 0.035296510389131966),
 (4562, 0.03524863483481015),
 (68, 0.035248355163527784),
 (1459, 0.035243092377724244),
 (1604, 0.03519210173600187),
 (2863, 0.03517077951562674),
 (3386, 0.03514539441712806),
 (274, 0.03512404739371985),
 (97, 0.035108515318976116),
 (517, 0.03510699186806164),
 (600, 0.03510163901238064),
 (4620, 0.035099976033805574),
 (4710, 0.035094822042329166),
 (778, 0.03504457062325418),
 (2994, 0.035042249499426074),
 (3617, 0.035038523518877394),
 (1309, 0.03498363963964314),
 (2081, 0.03494962743142046),
 (3988, 0.034939855109492955),
 (990, 0.034935266001833436),
 (1165, 0.03493293978155321),
 (3665, 0.034932770244462605),
 (2592, 0.03493002886044176),
 (3579, 0.03488497102715416),
 (129, 0.03487674439965269),
 (3985, 0.03487521747492946),
 (270, 0.034857554287686776),
 (3489, 0.03484151409488177),
 (2386, 0.03479237729024023),
 (1328, 0.03478390512029239),
 (1529, 0.03473030809789206),
 (3544, 0.03465823530643388),
 (3191, 0.034630836009697324),
 (4167, 0.03461315042096211),
 (4097, 0.03461030827672067),
 (1188, 0.03455065975898235),
 (4591, 0.0345464082105911),
 (403, 0.0345428475835477),
 (2726, 0.03453322083766031),
 (1306, 0.03450087877446914),
 (732, 0.034498665357742535),
 (324, 0.03449028454812133),
 (2218, 0.03447107810420136),
 (2659, 0.03442798431355434),
 (782, 0.034405077009869035),
 (50, 0.03440144418821104),
 (2681, 0.034395888439347426),
 (1953, 0.03435964127835994),
 (1879, 0.03432136867367232),
 (3945, 0.03430987105705905),
 (2394, 0.034306208804948876),
 (2175, 0.03428789893011423),
 (1286, 0.03428076878304728),
 (501, 0.03427875246869987),
 (217, 0.03426334984484118),
 (1794, 0.03425300365387178),
 (969, 0.034251906523115674),
 (2894, 0.03422656988558232),
 (2942, 0.03421932876773714),
 (3494, 0.034171848829382574),
 (4187, 0.03416368236635551),
 (836, 0.0341277250859267),
 (2522, 0.03411667510137488),
 (3725, 0.03409717415654935),
 (163, 0.03408942837626618),
 (2859, 0.034079889778643534),
 (1212, 0.034076653056522355),
 (1062, 0.03406726162694776),
 (908, 0.03405012188699481),
 (1504, 0.034036370975198564),
 (1510, 0.03403272611180707),
 (1727, 0.034026756912895105),
 (2684, 0.033958348041143005),
 (69, 0.033893931816070595),
 (1282, 0.03384799655932651),
 (197, 0.03383705267941171),
 (3692, 0.033773199983927686),
 (4049, 0.033758734099136746),
 (731, 0.033717667327336436),
 (1776, 0.03365696231985477),
 (2691, 0.03364801254066019),
 (1820, 0.03362314305373418),
 (3104, 0.03362025752355576),
 (234, 0.03359371427165062),
 (1903, 0.03358447611134565),
 (793, 0.033582969513966325),
 (2227, 0.03351467723496365),
 (2194, 0.03351008427335276),
 (1869, 0.033508838602921615),
 (3723, 0.0334645697269751),
 (51, 0.033441756490388705),
 (1106, 0.033436871387387),
 (3259, 0.033424041189141836),
 (35, 0.03340255568928485),
 (799, 0.03338135733060204),
 (2559, 0.03337168473572616),
 (633, 0.03336359124664137),
 (1818, 0.03334094378575396),
 (1864, 0.033340038325718975),
 (3410, 0.03331246039829767),
 (4309, 0.033310435767347366),
 (2625, 0.03329565479175724),
 (1996, 0.03329298748115045),
 (135, 0.0332929527579899),
 (614, 0.033272048762714224),
 (863, 0.033247645417284824),
 (3733, 0.033230983570537005),
 (486, 0.03322705592492167),
 (4482, 0.03320311598009911),
 (4193, 0.03318462090997353),
 (3033, 0.0331722672276032),
 (542, 0.03313220221159379),
 (2888, 0.03311038297301533),
 (2898, 0.03308599363419522),
 (422, 0.033072022983749505),
 (2428, 0.03307095472216806),
 (525, 0.03306913975683885),
 (2071, 0.033057743758296905),
 (331, 0.03302616167080612),
 (1597, 0.033014763641175296),
 (1594, 0.03300486215489209),
 (379, 0.032987312706859256),
 (454, 0.03298484056856658),
 (3854, 0.03297360144616493),
 (4654, 0.03296162614116207),
 (1736, 0.03295709646082802),
 (4542, 0.03295185050988324),
 (1096, 0.03294063149036306),
 (3305, 0.03292855049627481),
 (4602, 0.03292673736979276),
 (4670, 0.03292606998925676),
 (875, 0.0328993801563672),
 (2043, 0.03284560295311818),
 (2671, 0.03282088269358592),
 (2650, 0.03281858409554362),
 (4345, 0.032795908533700575),
 (694, 0.032784542471109804),
 (1082, 0.03276111497330827),
 (2203, 0.03275612770584183),
 (2956, 0.03275230513612481),
 (1492, 0.032710437262307934),
 (1482, 0.0327042190350435),
 (4630, 0.03267512902839263),
 (1360, 0.03267390525575172),
 (4328, 0.03265479273450444),
 (246, 0.03264120280708219),
 (4094, 0.03261816161795768),
 (2343, 0.03261282686121796),
 (462, 0.03261195839664138),
 (2727, 0.03260688854010276),
 (1577, 0.032604991971432525),
 (1044, 0.032603943271725146),
 (4754, 0.032537474738530345),
 (1080, 0.03250757090628814),
 (75, 0.032497354850573645),
 (1256, 0.03249100347668609),
 (1453, 0.0324885138749459),
 (2647, 0.03246235370473409),
 (3715, 0.032459736693788564),
 (2136, 0.03245065802645983),
 (2717, 0.03242912038108786),
 (3160, 0.03241113572161729),
 (3361, 0.03237799704207238),
 (1420, 0.032376152680338596),
 (1008, 0.03237394226008812),
 (933, 0.03234372676249425),
 (3901, 0.03233972683389646),
 (1686, 0.03230746862912969),
 (925, 0.032295728061468826),
 (587, 0.03229144940900021),
 (4539, 0.03228860568506504),
 (4801, 0.03220834470980215),
 (3477, 0.03217594718185889),
 (3991, 0.032172542585603016),
 (3294, 0.03214672189510748),
 (3552, 0.03213642682128293),
 (1535, 0.03209581458892623),
 (1211, 0.032094138748292166),
 (2936, 0.03207346794977359),
 (4646, 0.0320626659284315),
 (1546, 0.03205706940833667),
 (400, 0.03205399655694963),
 (1116, 0.03205117582424753),
 (1931, 0.03204816646393521),
 (1187, 0.032047273941971086),
 (1020, 0.03204129934177341),
 (134, 0.032031153828917365),
 (3929, 0.03202422829176752),
 (691, 0.03201015862008169),
 (2163, 0.03198135670723898),
 (4155, 0.03197346356444794),
 (3303, 0.031962742593211885),
 (926, 0.031960558906877205),
 (19, 0.031948617702448105),
 (3800, 0.031929057780568725),
 (2038, 0.03192179089921631),
 (3287, 0.031906810845311585),
 (2761, 0.031884820146202475),
 (3253, 0.0318827624483025),
 (1090, 0.03181813124187328),
 (195, 0.031816935198245785),
 (618, 0.03181155968789426),
 (994, 0.031807597788334724),
 (2797, 0.031804632946137855),
 (4522, 0.031798207698796044),
 (2370, 0.03178607356449644),
 (4164, 0.031784762150937694),
 (3311, 0.03176840764543624),
 (3718, 0.031743519542190755),
 (4731, 0.03170641054565783),
 (4708, 0.03168763884565486),
 (4501, 0.03167164695003239),
 (1958, 0.031623010944513676),
 (1890, 0.03162199983958594),
 (4114, 0.031490330432492226),
 (4653, 0.0314690953026165),
 (53, 0.031443542529842286),
 (3302, 0.03143458210161061),
 (4117, 0.03142749986056689),
 (4675, 0.03139452023802891),
 (831, 0.03137112190793036),
 (65, 0.03136542917567045),
 (1191, 0.031351073241063204),
 (4786, 0.031328775554801444),
 (257, 0.0313260785073345),
 (5, 0.031318245096298415),
 (1094, 0.03131725620490828),
 (2130, 0.03131264373728456),
 (2486, 0.03131064576822111),
 (3437, 0.031288965380325655),
 (2675, 0.03127161032005708),
 (2776, 0.031249024598050276),
 (145, 0.03120745241618347),
 (3007, 0.03120357072028332),
 (1758, 0.031165989531679438),
 (4230, 0.031140077886597863),
 (4392, 0.03109339499744599),
 (2752, 0.031062305063913602),
 (1402, 0.031010896376172475),
 (277, 0.031006051688883103),
 (232, 0.030998298876282988),
 (402, 0.030994204909696267),
 (1602, 0.030991647163188328),
 (3931, 0.0309820890340758),
 (4007, 0.03095223776681878),
 (2044, 0.03094185241656153),
 (1808, 0.03093858364992503),
 (2052, 0.030886816656202284),
 (764, 0.030875334152935398),
 (3351, 0.03086730325947654),
 (112, 0.03086290992345653),
 (2626, 0.030834624536693264),
 (1285, 0.030821868408176505),
 (103, 0.030781300705642417),
 (2046, 0.030773816373878344),
 (4013, 0.03076442599764354),
 (3717, 0.03076260088127754),
 (23, 0.030759611317351537),
 (3651, 0.030728286164028066),
 (2721, 0.030726887470006296),
 (4199, 0.030693963933939403),
 (569, 0.030670794897127908),
 (4302, 0.030670447162842902),
 (3373, 0.03064029073856192),
 (4156, 0.030632571582021848),
 (654, 0.03062856245222891),
 (2590, 0.030618062332719215),
 (428, 0.030611872055964797),
 (687, 0.030596842335092817),
 (4726, 0.030577622248118167),
 (92, 0.03057484208782959),
 (1415, 0.030568286562380715),
 (610, 0.030544258104546147),
 (4678, 0.030531091097940725),
 (1508, 0.030529259665829898),
 (2358, 0.0305196811742205),
 (3205, 0.030501373060571938),
 (2181, 0.030484900952303783),
 (4211, 0.030438847417882383),
 (3221, 0.03040204053000026),
 (4466, 0.030400579762937578),
 (3024, 0.030389504435994363),
 (387, 0.030343958632456182),
 (225, 0.030338953186884548),
 (1782, 0.03033774404587972),
 (3593, 0.030328020109933455),
 (4703, 0.030307968501005672),
 (3006, 0.030258313633747418),
 (3202, 0.030244891391944792),
 (1691, 0.030243941753547617),
 (84, 0.030229667810420493),
 (3642, 0.030206021985475562),
 (1120, 0.03020418899623139),
 (115, 0.030197813978170274),
 (4355, 0.03018732055251231),
 (4035, 0.030175174010253204),
 (3068, 0.030165384406253576),
 (3505, 0.030163972202052847),
 (4557, 0.030162142647799192),
 (4716, 0.030159105773699353),
 (64, 0.030148135522917664),
 (271, 0.030122147539189605),
 (375, 0.030088096108128785),
 (391, 0.030072959613689866),
 (3224, 0.03006867417299134),
 (480, 0.030031450609557708),
 (16, 0.030027205662766596),
 (2026, 0.03002310343715185),
 (469, 0.0300170952294293),
 (930, 0.03000971763550027),
 (1606, 0.030003479873980735),
 (3613, 0.02998765724607333),
 (4143, 0.029938188872146554),
 (4313, 0.029935179058401165),
 (588, 0.029905691066924867),
 (3817, 0.029902012784331494),
 (572, 0.029887086018270437),
 (2156, 0.029874101615005463),
 (758, 0.02985689565874055),
 (1825, 0.029838517693317596),
 (4032, 0.029826908090725652),
 (196, 0.02982136876765693),
 (4288, 0.029819052775252496),
 (2537, 0.029812597971317953),
 (4110, 0.02978104807766406),
 (3460, 0.029777297729794327),
 (562, 0.02977383101756516),
 (256, 0.029767088262885114),
 (4383, 0.029747819296379843),
 (574, 0.029745371272656966),
 (304, 0.02973975196978829),
 (1443, 0.029704156229904362),
 (126, 0.029692965649596472),
 (4231, 0.02967882298965381),
 (3925, 0.0296765528279514),
 (2948, 0.029644174609491307),
 (2085, 0.02964156542675469),
 (2489, 0.029636335698234408),
 (964, 0.029634520880921236),
 (1132, 0.029559455761512463),
 (589, 0.029539816084776814),
 (858, 0.0295367455377082),
 (478, 0.029531789779072247),
 (516, 0.029488908479835516),
 (2651, 0.029486323402267686),
 (2076, 0.029471594033959728),
 (1836, 0.02946304485132457),
 (3986, 0.02944859613306606),
 (2812, 0.02939055568506944),
 (2798, 0.02936262644948373),
 (3449, 0.029336076916280193),
 (4247, 0.029332751319976404),
 (11, 0.029318081052504528),
 (1652, 0.029303791954261683),
 (2240, 0.029276876681832608),
 (229, 0.029267090430365437),
 (2605, 0.02926014877682768),
 (2728, 0.029258757604292335),
 (2300, 0.029256287891375167),
 (4623, 0.029255085559238107),
 (900, 0.02922928768954191),
 (1252, 0.029223689022467737),
 (4645, 0.029217898042746243),
 (786, 0.029212579287578314),
 (1840, 0.02920124549352339),
 (3318, 0.029197991028586764),
 (2335, 0.02919123578221609),
 (835, 0.029191056205226558),
 (1207, 0.029185734407336496),
 (1487, 0.029179349327980456),
 (820, 0.02916816290477254),
 (747, 0.029109361793110203),
 (982, 0.02910852453090264),
 (4045, 0.029106681558484625),
 (2080, 0.029104981914034173),
 (1109, 0.029092068816639817),
 (1042, 0.029087654505892176),
 (2900, 0.029070405679431567),
 (4772, 0.02906985866048921),
 ...]
In [202]:
print('Movies suggested for you : \n')
i = 1
for movie in sorted_similar_movies:
  index = movie[0]
  title_from_index = df[df.index==index]['title'].values[0]
  if (i<30):
    print(i, '.',title_from_index)
    i+=1
Movies suggested for you : 

1 . Avatar
2 . Moonraker
3 . Alien
4 . Lara Croft Tomb Raider: The Cradle of Life
5 . The Book of Life
6 . Guardians of the Galaxy
7 . Lifeforce
8 . Apollo 18
9 . Treasure Planet
10 . Deep Impact
11 . Sunshine
12 . The Right Stuff
13 . Star Trek Beyond
14 . Tears of the Sun
15 . Sphere
16 . Lost in Space
17 . Terminator Salvation
18 . Space Dogs
19 . Men in Black II
20 . Alien³
21 . The Inhabited Island
22 . Aliens vs Predator: Requiem
23 . Space Chimps
24 . Gravity
25 . Cargo
26 . Star Trek Into Darkness
27 . Supernova
28 . Aliens
29 . Capricorn One
In [ ]: