Data-frame Object has no Attribute
<p>I am trying to call Dataframe columns for analysis using Pandas. I uploaded a CSV file, however every time It gives me this error <code>AttributeError: 'DataFrame' object has no attribute 'X'
</code> How can I make every column available for analysis and why does this always happen. </p>

<p><code>proportion_women_survived = float(sum(women.survived))/len(women)</code> This is one example. I <code>read_CSV('Train.csv)</code> into Python editor and the columns are shown when I <code>data.head()</code> however not one column unless I do this:   </p>

<pre><code>[{newCols = data.columns.values
newCols[-1] = 'PassengerId'
data.columns = newCols}]
</code></pre>