{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Importing Libraries and Loading Data " ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# Reading movies file\n", "movies = pd.read_csv('movies.csv', sep=',', encoding='latin-1', usecols=['title', 'genres'])" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | title | \n", "genres | \n", "
---|---|---|
0 | \n", "Toy Story | \n", "Adventure|Animation|Children|Comedy|Fantasy | \n", "
1 | \n", "Jumanji | \n", "Adventure|Children|Fantasy | \n", "
2 | \n", "Grumpier Old Men | \n", "Comedy|Romance | \n", "
3 | \n", "Waiting to Exhale | \n", "Comedy|Drama|Romance | \n", "
4 | \n", "Father of the Bride Part II | \n", "Comedy | \n", "