best way to handle this in Python

Rita rmorgan466 at gmail.com
Fri Jul 20 03:28:12 CEST 2012


Using linux 2.6.31; Python 2.7.3.
I am not necessary looking for code just a pythonic way of doing it.
Eventually, I would like to graph the data using matplotlib




On Thu, Jul 19, 2012 at 8:52 PM, Dave Angel <d at davea.name> wrote:

> On 07/19/2012 07:51 PM, Rita wrote:
> > Hello,
> >
> > I have data in many files (/data/year/month/day/) which are named like
> > YearMonthDayHourMinute.gz.
> >
> > I would like to build a data structure which can easily handle querying
> the
> > data. So for example, if I want to query data from 3 weeks ago till
> today,
> > i can do it rather quickly.
> >
> > each YearMonthDayHourMinute.gz file look like this and they are about 4to
> > 6kb
> > red 34
> > green 44
> > blue 88
> > orange 4
> > black 3
> > while 153
> >
> > I would like to query them so I can generate a plot rather quickly but
> not
> > sure what is the best way to do this.
> >
> >
> >
>
> What part of your code is giving you difficulty?  You didn't post any
> code.  You don't specify the OS, nor version of your Python, nor what
> other programs you expect to use along with Python.
>
>
>
> --
>
> DaveA
>
>


-- 
--- Get your facts first, then you can distort them as you please.--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120719/6ec5d897/attachment.html>


More information about the Python-list mailing list