Re: [Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread AR12
matplotlib] < ml-node+s1069221n42942...@n5.nabble.com> wrote: > 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

[Matplotlib-users] Loding CSV file and plotting histogram of a particular column

2014-02-28 Thread AR12
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