Extracting column from numpy array - unhashable array
<p>I have a file of experimental data that I have parsed into a numpy array. I am attempting to extract the first column of the array into a variable using:</p>

<pre><code>Thermo_Col = df[:,[0]]
</code></pre>

<p>where <code>Thermo_Col</code> is the column of temperatures and df is the numpy array</p>

<p>and I get an error</p>

<pre><code>TypeError: unhashable type
</code></pre>

<p>Help</p>

<p>I think df is not a numpy array, but a DataFrame, try this:</p>

<pre><code>df.iloc[:, [0]]
</code></pre>

python numpy