Pandas 'read_csv' giving an error, in one specific directory only.
<p>I was attempting to follow a <a href="http://ahmedbesbes.com/how-to-score-08134-in-titanic-kaggle-challenge.html" rel="nofollow">pandas/sklearn/kaggle tutorial</a>, and barely got a dozen lines when I stumbled over over one of the simplest commands in python:</p>

<p>Code:</p>

<pre><code>import warnings
warnings.filterwarnings('ignore')

import pandas as pd
pd.options.display.max_columns = 100
pd.options.display.max_rows   = 100

import matplotlib as mpl
import matplotlib.pyplot as pd

import numpy as np


#Cell 3
data = pd.read_csv('./Data/train.csv')

data.head()
</code></pre>

<p>Error:</p>

<pre><code>Traceback (most recent call last):
  File "KaggleTitanic00.py", line 15, in &lt;module&gt;
    data = pd.read_csv('./Data/train.csv')
AttributeError: 'module' object has no attribute 'read_csv'
</code></pre>

<p>A command that only gives an error in <em>that directory</em>:</p>

<pre><code>~/Python/Tutorials/SKlearn$ python Chapter4--Test-12.py
Number of spam messages: 747
Number of ham messages: 4825
['spam' 'spam' 'ham' ..., 'ham' 'ham' 'ham']
Prediction: spam. Message: Ur cash-balance is currently 500 pounds - to maximize ur cash-in now send GO to 86688 only 150p/msg. CC 08718720201 HG/Suite342/2Lands Row/W1J6HL
Prediction: spam. Message: December only! Had your mobile 11mths+? You are entitled to update to the latest colour camera mobile for Free! Call The Mobile Update Co FREE on 08002986906
Prediction: ham. Message: Just normal only here :)
Prediction: ham. Message: How would my ip address test that considering my computer isn't a minecraft server
Prediction: ham. Message: Ã collecting ur laptop then going to configure da settings izzit?
</code></pre>

<p>I have absolutely no idea what's wrong. The code is identical to the tutorial.</p>

<p>Write:</p>

<pre><code>import matplotlib.pyplot as plt
</code></pre>

<p>By reimporting as <code>pd</code> you overwrite <code>import pandas as pd</code></p>

python csv pandas module attributeerror