Aarthi,
For me to help further, you will need to provide a sample input file, and the
script you are trying to use to read that input file. Then I can go from there.
-Sterling
On Feb 28, 2014, at 1:38PM, Aarthi Reddy wrote:
> It is not an uppercase problem. The other two titles had combinatio
You have an uppercase 'Confidence'. Are you using pandas or numpy? For numpy,
from Piet's email, you need a lowercase key. What does
`print df['Confidence'].shape`
yield? Because the error looks like you have an array with no size (zero
dimensions), so perhaps you are still not reading in yo
Thanks, this worked for two of the columns. For the third column, I get
this error: Sorry to bug you about this. Do you know where I can find the
solution to this problem?
---
TypeError Traceba
AR12 wrote:
> Hi,
>
> I have a csv file where head -5 looks like this:
>
> A B C
> 100 0.45 0.3
> 67 0.25 0.4
> 50.6 0.2 0.6
> 56.4 0.4 0.3
>
> The columns are tab separated. I want to load this CSV file and plot the
> histogram of the third or second column. I was able t
Sounds like you want to use pandas, not numpy.
import pandas
import matplotlib.pyplot as plt
df = pandas.read_csv('myfile.txt', sep='\t')
plt.hist(data['A'], bins=30)
...should do it for you.
On Fri, Feb 28, 2014 at 11:06 AM, AR12 wrote:
> Hi,
>
> I have a csv file where head -5 looks like th
Hi,
I have a csv file where head -5 looks like this:
A B C
100 0.45 0.3
67 0.25 0.4
50.6 0.2 0.6
56.4 0.4 0.3
The columns are tab separated. I want to load this CSV file and plot the
histogram of the third or second column. I was able to load the csv file
using this:
data=csv2rec('Dow