NameError: name 'pd' is not defined
<p>I am attempting run in Jupyter </p>

<pre><code>import pandas as pd                     
import matplotlib.pyplot as plt          # plotting
import numpy as np                       # dense matrices
from scipy.sparse import csr_matrix      # sparse matrices
%matplotlib inline
</code></pre>

<p>However when loading the dataset with</p>

<pre><code>wiki = pd.read_csv('people_wiki.csv')
# add id column
wiki['id'] = range(0, len(wiki))
wiki.head(10)
</code></pre>

<h2> the following error persists</h2>

<pre><code>NameError                                 Traceback (most recent call last)
&lt;ipython-input-1-56330c326580&gt; in &lt;module&gt;()
----&gt; 1 wiki = pd.read_csv('people_wiki.csv')
      2 # add id column
      3 wiki['id'] = range(0, len(wiki))
      4 wiki.head(10)

NameError: name 'pd' is not defined
</code></pre>

<p>Any suggestions appreciated</p>