def genres_cleansing(movies):
    movies['GenreCorrected'] = movies['Genre']
    movies['GenreCorrected'] = movies['GenreCorrected'].str.strip()
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' - ', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('-', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' / ', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('/', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' & ', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(', ', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('; ', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('.', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('action ', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('action,', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionadventure', 'action|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actioncomedy', 'action|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('\(film genre\)', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionbased on radio serial', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actioncrime', 'action|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actiondrama', 'action|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionfantasy', 'action|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('for ', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('film', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historical', 'history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romantic', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('3-d', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('3d', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventure ', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science fantasy', 'science_fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science fiction', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sci-fi', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('scifi', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('ttriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionthriller', 'action|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionchildren', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionentertainer', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('love', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionhorror', 'action|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionmasala ', 'action|masala')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionmasala', 'action|masala')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionmystery thriller', 'action|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionromance', 'action|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionwester', 'action|western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' drama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' thriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' martial arts', 'martial arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martial arts', 'martial_arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('boxing', 'martial_arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurescience_fantasy', 'adventure|science_fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurescience_fiction', 'adventure|science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurethriller', 'adventure|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animated', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' noir', 'noir')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thriller spy', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedydrama', 'comedy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('epic', 'superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biopic', 'biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimedrama', 'crime|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimethriller', 'crime|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superhero,', 'superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('kung fu', 'martial_arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('road movie', 'road_movie')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romance ', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancecomedy', 'romance|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sciencefiction', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spy ', 'spy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' horror', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionhorror', 'science_fiction|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('action—masala', 'action|masala')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('westernn', 'western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adaptation of a play by michel marc bouchard,', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adapted from the play by alexandre goyette', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adult ', 'adult')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adultcomedy', 'adult|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adultromance', 'adult|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adultdrama', 'adult|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventureaction', 'adventure|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurecomedy', 'adventure|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventuredrama', 'adventure|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurefantasy', 'adventure|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurehorror', 'adventure|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventureserial', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventures', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasycomedy', 'fantasy|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('children\'s', 'children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('drama ', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horror ', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorcomedy', 'horror|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('in animation', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horroranimation', 'horror|animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historydrama', 'history|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' history', 'history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' fantasy', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(',', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherofantasy', 'superhero|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancedrama', 'romance|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('afghan wardrama', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('african adventure', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('africandrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('aidsdrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('american football', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animation ', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('allari naresh', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('allari naresh|madhu sharma|shashank|bramhanandam|ravi babu', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('ajay|kota srinivasa rao', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('anime', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationadventure', 'animation|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationcomedy', 'animation|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' family', 'family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('ancientcostume', 'costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationfeature', 'animation|feature')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationdrama', 'animation|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationfantasy', 'animation|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationmartial_arts', 'animation|martial_arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationmusical', 'animation|musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationseries', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationshort', 'animation|short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' period', 'period')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy comedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyfamily', 'comedy|family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' animation', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' coproduced with the national  board', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' produced with the national  board of canada', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('featureanimation', 'feature|animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('live action', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' action', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martial_artsaction', 'martial_arts|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animation\|produced by glukoza production', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' comedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictioncomedy', 'science_fiction|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('short produced with the national  board', 'short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' children', 'children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' science_fiction', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' war', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationaction', 'animation|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationchildren', 'animation|children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationscience_fiction', 'animation|science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationwar', 'animation|war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('wardrama', 'war|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('anthology ', 'anthology')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('apocalypticthriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('art', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('august 25', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('australian western', 'western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographical', 'biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographic', 'biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('blackcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('about montreal canadiens star\|maurice richard', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biodrama', 'biography|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biker ', 'biker')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('arjun\|jagapati babu', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('auli\'i cravalho dwayne johnson', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('aviation', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('balakrishna nandamuri\|sneha\|tabu', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bbc s', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bholenath movies\|cinekorn entertainment', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bharath\|arya\|pooja\|padmapriya', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biju menon\|krishnashankar\|samskruti shenoy', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' legend', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' fim', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' of pioneering american photographer eadweard muybridge', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' patrioticdrama', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' devotional', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' politicalthriller', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' crime', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographycomedy', 'biography|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographycrime', 'biography|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographydrama', 'biography|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biographyhistory', 'biography|history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('on alice robitaille', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politicaldrama', 'political|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spythriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('worldwar ii', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('blaxploitation', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('britishgerman coproduction', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bruceploitation', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' cop', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy\|comedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy\|supernatural', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy ', 'buddy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chanchal chowdhury masuma rahman nabila pha barua', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedy ', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('cowboy', 'western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedic', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedey', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('colour yellow productions\|eros international', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('campus\|romance', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('campus', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('cbctv miniseries', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chakravhy musical hit', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chambara', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chanbara', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('charlie chan', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('children ', 'children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('childrenadventure', 'children|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('childrendrama', 'children|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('childrenscience_fiction', 'children|science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chiranjeevi\|trisha krishnan\|khushboo', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('christian', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('classic muslim social', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('clay', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coldwar', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('colonial ', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('2reeler', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('\[not in citation given\]', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyaction', 'comedy|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyadventure', 'comedy|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('based on comic strip', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedydrama', 'comedy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyfantasy', 'comedy|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyhorror', 'comedy|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedymasala', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedymystery', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyroad_movie', 'comedy|road_movie')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyromance', 'comedy|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancethriller', 'romance|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancestory', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedy–drama', 'comedy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedy–horror', 'comedy|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coming of age', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comingofage', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('compilation', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('computeranimation', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyshort ', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyshort', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedywestern', 'comedy|western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyspy', 'comedy|spy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedythriller', 'comedy|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyscience_fiction', 'comedy|science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adaptation of the mordecai richler novel', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('concert', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('conspiracythriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coon short', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coon', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costume ', 'costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costumeaction', 'costume|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costumecomedy', 'costume|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mial_s', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romance\|slice of life', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costumedrama', 'costume|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costumefantasy', 'costume|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('costumesocialdrama', 'costume|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('counterculture', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crime ', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('melodrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimesocial', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimesuspense ', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimebiography', 'crime|biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimecomedy', 'crime|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimedramedy', 'crime|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimefiction', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimemusical', 'crime|musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimemystery', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimeromance', 'crime|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramabased on a true story', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimedrama', 'crime|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('darkcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crime romance', 'crime|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('cult', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historic', 'history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('music', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('road', 'road_movie')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalal', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('\|slice of life', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sports', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('truecrime', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramedy', 'comedy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('ero', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotictic', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotic ', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('family ', 'family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherotic', 'superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasy ', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superheroes', 'superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('futuristic', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('history ', 'history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supernaturalhorror', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('jhorror', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musical b', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musical ', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('murder', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('operetta', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('period ', 'period')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politics', 'political')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortanimation', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('muslim social', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('samurai ', 'costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('samurai', 'costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sci fi', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fiction ', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('short ', 'short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('social ', 'social')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sport ', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('teen romance', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('teencomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('teendrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('teenfantasydrama', 'fantasy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thriler', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thriller ', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('travelogue', 'road_movie')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tragedy', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('urbanthriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('war ', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('warner bros ', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('warner bros', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('western ', 'western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotica', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('eroticcomedy', 'erotic|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('eroticdrama', 'erotic|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotichorror', 'erotic|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('eroticmusical', 'erotic|musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('eroticthriller', 'erotic|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('experimental \|', 'experimental')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('experimental ', 'experimental')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('experimentalshort', 'experimental|short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('famildrama', 'family|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('family\(istic\)', 'family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familyadventure', 'family|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familycomedy', 'family|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familydrama', 'family|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familysocial', 'family|social')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familyromance', 'family|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramaromance', 'drama|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('family\|directtodvd', 'family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramasocial', 'drama|social')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romanceaction', 'romance|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialdrama', 'social|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sportcomedy', 'sport|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyaction', 'fantasy|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyadventure', 'fantasy|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyandcomedy', 'fantasy|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyanimation', 'fantasy|animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasychildren', 'fantasy|children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasycomedy', 'fantasy|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasycostume', 'fantasy|costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasydrama', 'fantasy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyhorror', 'fantasy|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyperiod', 'fantasy|period')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyromance', 'fantasy|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasythriller', 'fantasy|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasy\| ', 'fantasy|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramacomedy', 'drama|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('magical girl', 'magical_girl')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('kids', 'children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('found footage\|', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('found footage', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gangster ', 'gangster')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gangstercomedy', 'gangster|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gangsterthriller', 'gangster|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gangsterdrama', 'gangster|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gore', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gun fu', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('heistcomedy', 'heist|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('on the early years of hitler', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyadventure', 'history|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyanimation', 'history|animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historybiography', 'history|biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historycomedy', 'history|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historycostumeroticmance', 'history|costume|erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historycostume', 'history|costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historycrmime', 'history|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historydram', 'history|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historycrime', 'history|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historydisaster', 'history|disaster')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyfantasy', 'history|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyfiction', 'history|fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyhorror', 'history|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historyromance', 'history|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historysuperhero', 'history|superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('disaster romance', 'disaster|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('psychologicalthriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancebased on colm tóibín\'s novel of the same name', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancefiction', 'romance|fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fictiondrama', 'fiction|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherodrama', 'superhero|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('darkfantasy', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('holocaust drama', 'history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('\|\|', '|')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrordrama', 'horror|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorand priquitianism', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrormasala', 'horror|masala')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrormusical', 'horror|musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorromance', 'horror|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorspoof', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorthriller', 'horror|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horror–thriller', 'horror|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('huangmei opera', 'musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('imax', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('imdb', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalcomedy', 'musical|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicaldrama', 'musical|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalfantasy', 'musical|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicaliography', 'musical|biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalromance', 'musical|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalwestern', 'musical|western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicalthriller', 'musical|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thrillerdrama', 'thriller|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musical–comedy', 'musical|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mystery ', 'mystery')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mysteryadventure', 'mystery|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mysterycomedy', 'mystery|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mysterydrama', 'mystery|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mysterythriller', 'mystery|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suspensethriller', 'suspense|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodcomedy', 'period|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodcostume', 'period|costume')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('perioddrama', 'period|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodpiece', 'period|piece')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodthriller', 'period|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodromance', 'period|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('peroticdic', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('policedrama', 'police|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('political ', 'political')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('physiologicalthriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politicalcomedy', 'political|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politicalcrime', 'political|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politicalsatire', 'political|satire')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politicalthriller', 'political|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('postapolypticscience_fiction', 'postapolyptic|science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('psychotriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('psythriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('race ', 'race')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('roman porno', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romanceadventure', 'romance|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancecomedy', 'romance|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancecrime', 'romance|crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancedrama', 'romance|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancefamily', 'romance|family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancefantasy', 'romance|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancehorror', 'romance|horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancemusical', 'romance|musical')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancesocial', 'romance|social')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancespy', 'romance|spy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spydrama', 'spy|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancesuspense', 'romance|suspense')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancetriangle', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' girl', 'girl')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' house', 'house')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramatriangle', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramawar', 'drama|war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('\|3 suitors', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('worldwari', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('wardrama', 'drama|war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancticcomedy', 'romance|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancticdrama', 'romance|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romcom', 'romance|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('satiredrama', 'satire|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('satiricalcomedy', 'satiric|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('satiric', 'satire')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionaction', 'science_fiction|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionadventure', 'science_fiction|adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionanimation', 'science_fiction|animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionchildren', 'science_fiction|children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionfantasy', 'science_fiction|fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionromance', 'science_fiction|romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionexploitation', 'science_fiction|exploitation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionmystery', 'science_fiction|mystery')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionthriller', 'science_fiction|thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionwestern', 'science_fiction|western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionlgbtrelateddrama', 'science_fiction|drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramasupernatural', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('time travel', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('screwballcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('semistaged documentary', 'documentary')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexploitation', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexual hygiene', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexualdrama', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexual', 'erotic')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sf', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shakespearean', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shakespeareandrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortaction', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortdocumentary', 'documentary')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortdrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shorfantasy', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortmystery', 'mystery')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mystery(3min)', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortfantasy', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('shortsubject', 'short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slasher ', 'slasher')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slahser', 'slasher')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slasher', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slapstickcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slapstick', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialaction', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialbiography', 'biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialchildren', 'children')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialcrime', 'crime')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialfamily', 'family')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialromance', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialsatire', 'satire')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialscience_fiction', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('socialthriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sociofantasy', 'fantasy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sociopolitical', 'political')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('south african western', 'western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('space opera', 'science_fiction')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('splatter', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorcomedy', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spoof', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sport\(road_movie bicycle racing\)', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sport\(shogi\|chess\)\|comedy\|drama', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sportbiography', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sportdrama', 'sport')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spyaction', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spyanthology', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spycomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spyserial', 'serial')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spy\|action\|james bond', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('stoner', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('srikanth\|bhavana', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('srikanth\|rajendra prasad\|sindhu tolani', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('srikanth\|venu madhav\|ali', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('stopmotionanimation', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('stopmotionanimationproduced with the national  board andwarner home video', 'animation')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('student', 'school')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('stylish', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suhasini\|sharwanand\|shriya reddy', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sumanth\|charmme', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sumanth\|kamalinee mukherjee', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('summer campcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sunil\|i agarwal', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('super hit movie', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superheroaction', 'superhero|action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherocomedy', 'superhero|comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherohistory', 'superhero|history')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superherowestern', 'superhero|western')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superhero\|tokusatsu', 'superhero')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramaset  years ago in the canadian arctic', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supernaturalaction', 'supernatural')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supernaturalcomedy', 'supernatural')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supernaturalthriller', 'supernatural')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supernatural', 'mystery')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('surf\|thriller', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('surrealcomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('surrealdrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('survival', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suspense romance', 'suspense')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suspenseaction\|horror', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('swashbuckler', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('swashbuckling musical\|romance', 'romance')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sword', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tapas paul\|debashree roy', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('televisiondrama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thai drama', 'drama')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thrilleraction', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thrillercomedy', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thrillerroad_movie', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thrillerromance', 'thriller')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('timetravellingcomedy', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tokusatsu vcinema', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tokusatsu\|action\|science_fiction\|spy\|superhero', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tokusatsu\|action\|science_fiction', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tokusatsu', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tragiccomedy', 'comedy')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('travel', 'adventure')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('triad', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tv miniseries\|docudrama', 'serial')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tv miniseries', 'serial')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('uday kiran\|vimala raman', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('united ists biography', 'biography')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('usa\|can', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('usa', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('vampire\|horror', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('vampire', 'horror')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('viacom 8 motion pictures', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('vigilante\|action\|thriller', 'action')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('.', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('based on radio serial', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' on the early years of hitler', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sci fi', 'science_fiction')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science fiction', 'science_fiction')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' (30min)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('16 mm film', 'short')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('[140]', '')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('[144]', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' for ', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventures', 'adventure')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('kung fu', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('kung-fu', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martial arts', 'martial_arts')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('world war ii', 'war')
    movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('world war i', 'war')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(
    #     'biography about montreal canadiens star|maurice richard', 'biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bholenath movies|cinekorn entertainment', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(volleyball)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spy film', 'spy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('anthology film', 'anthology')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biography fim', 'biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('avant-garde', 'avant_garde')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biker film', 'biker')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy cop', 'buddy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('buddy film', 'buddy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedy 2-reeler', 'comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('films', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('film', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(
    #     'biography of pioneering american photographer eadweard muybridge', 'biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('british-german co-production', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('bruceploitation', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected']\
    #     .str.replace('comedy-drama adaptation of the mordecai richler novel', 'comedy-drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('movies by the mob|knkspl', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('movies', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('movie', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coming of age', 'coming_of_age')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('coming-of-age', 'coming_of_age')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('drama about child soldiers', 'drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(( based).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(( co-produced).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(( adapted).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(( about).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musical b', 'musical')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationchildren', 'animation|children')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' period', 'period')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('drama loosely', 'drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(aquatics|swimming)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(aquatics|swimming)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace
    # ("yogesh dattatraya gosavi's directorial debut [9]",
    #                                                                 '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace("war-time", "war")
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace("wartime", "war")
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace("ww1", "war")
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('unknown', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace("wwii", "war")
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('psychological', 'psycho')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('rom-coms', 'romance')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('true crime', 'crime')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|007', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('slice of life', 'slice_of_life')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('computer animation', 'animation')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gun fu', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('j-horror', 'horror')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(shogi|chess)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('afghan war drama', 'war drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|6 separate stories', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(30min)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' (road bicycle racing)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' v-cinema', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tv miniseries', 'tv_miniseries')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|docudrama', '|documentary|drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' in animation', '|animation')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('((adaptation).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('((adaptated).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('((adapted).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('(( on ).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('american football', 'sports')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dev|nusrat jahan', 'sports')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('television miniseries', 'tv_miniseries')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' (artistic)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' |direct-to-dvd', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('history dram', 'history drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martial art', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('psycho thriller,', 'psycho thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|1 girl|3 suitors', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' (road bicycle racing)', '')
    # filtere = movies['GenreCorrected'] == "ero"
    # movies.loc[filtere, 'GenreCorrected'] = "adult"
    # filtere = movies['GenreCorrected'] == "music"
    # movies.loc[filtere, 'GenreCorrected'] = "musical"
    # filtere = movies['GenreCorrected'] == "-"
    # movies.loc[filtere, 'GenreCorrected'] = ''
    # filtere = movies['GenreCorrected'] == "comedy–drama"
    # movies.loc[filtere, 'GenreCorrected'] = "comedy|drama"
    # filtere = movies['GenreCorrected'] == "comedy–horror"
    # movies.loc[filtere, 'GenreCorrected'] = "comedy|horror"
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(' ', '|')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace(',', '|')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('-', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionadventure', 'action|adventure')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actioncomedy', 'action|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actiondrama', 'action|drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionlove', 'action|love')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionmasala', 'action|masala')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionchildren', 'action|children')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasychildren|', 'fantasy|children')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasycomedy', 'fantasy|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantasyperiod', 'fantasy|period')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('cbctv_miniseries', 'tv_miniseries')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramacomedy', 'drama|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramacomedysocial', 'drama|comedy|social')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramathriller', 'drama|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedydrama', 'comedy|drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramathriller', 'drama|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedyhorror', 'comedy|horror')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sciencefiction', 'science_fiction')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventurecomedy', 'adventure|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('animationdrama', 'animation|drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('||', '|')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('muslim', 'religious')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('thriler', 'thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('crimethriller', 'crime|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('fantay', 'fantasy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionthriller', 'action|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedysocial', 'comedy|social')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martialarts', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|(children|poker|karuta)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('epichistory', 'epic|history')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotica', 'adult')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('erotic', 'adult')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('((|produced|).+)', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('chanbara', 'chambara')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('comedythriller', 'comedy|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biblical', 'religious')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biblical', 'religious')
    # movies['GenreCorrected'] = movies['GenreCorrected'].
    # str.replace('colour|yellow|productions|eros|international', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|directtodvd', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('liveaction', 'live|action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('melodrama', 'drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superheroes', 'superheroe')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('gangsterthriller', 'gangster|thriller')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('heistcomedy', 'comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('heist', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historic', 'history')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('historydisaster', 'history|disaster')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('warcomedy', 'war|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('westerncomedy', 'western|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('ancientcostume', 'costume')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('computeranimation', 'animation')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramatic', 'drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familya', 'family')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familya', 'family')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramedy', 'drama|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('dramaa', 'drama')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('famil|', 'family')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superheroe', 'superhero')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('biogtaphy', 'biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('devotionalbiography', 'devotional|biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('docufiction', 'documentary|fiction')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('familydrama', 'family|drama')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('espionage', 'spy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('supeheroes', 'superhero')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancefiction', 'romance|fiction')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horrorthriller', 'horror|thriller')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suspensethriller', 'suspense|thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('musicaliography', 'musical|biography')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('triller', 'thriller')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|(fiction)', '|fiction')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romanceaction', 'romance|action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancecomedy', 'romance|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romancehorror', 'romance|horror')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romcom', 'romance|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('rom|com', 'romance|comedy')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('satirical', 'satire')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fictionchildren',
    #                                                                 'science_fiction|children')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('homosexual', 'adult')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('sexual', 'adult')
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('mockumentary', 'documentary')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('periodic', 'period')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('romanctic', 'romantic')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('politics', 'political')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('samurai', 'martial_arts')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('tv_miniseries', 'series')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('serial', 'series')
    #
    # filtere = movies['GenreCorrected'] == "musical–comedy"
    # movies.loc[filtere, 'GenreCorrected'] = "musical|comedy"
    #
    # filtere = movies['GenreCorrected'] == "roman|porno"
    # movies.loc[filtere, 'GenreCorrected'] = "adult"
    #
    # filtere = movies['GenreCorrected'] == "action—masala"
    # movies.loc[filtere, 'GenreCorrected'] = "action|masala"
    #
    # filtere = movies['GenreCorrected'] == "horror–thriller"
    # movies.loc[filtere, 'GenreCorrected'] = "horror|thriller"
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('family', 'children')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('martial_arts', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('horror', 'thriller')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('war', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('adventure', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('science_fiction', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('western', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('western', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('noir', 'black')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('spy', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('superhero', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('social', '')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('suspense', 'action')
    #
    # filtere = movies['GenreCorrected'] == "drama|romance|adult|children"
    # movies.loc[filtere, 'GenreCorrected'] = "drama|romance|adult"
    #
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('|–|', '|')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.strip('|')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.replace('actionner', 'action')
    # movies['GenreCorrected'] = movies['GenreCorrected'].str.strip()
    return movies
