Using linux 2.6.31; Python 2.7.3.<div>I am not necessary looking for code just a pythonic way of doing it. Eventually, I would like to graph the data using matplotlib</div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">
On Thu, Jul 19, 2012 at 8:52 PM, Dave Angel <span dir="ltr"><<a href="mailto:d@davea.name" target="_blank">d@davea.name</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 07/19/2012 07:51 PM, Rita wrote:<br>
> Hello,<br>
><br>
> I have data in many files (/data/year/month/day/) which are named like<br>
> YearMonthDayHourMinute.gz.<br>
><br>
> I would like to build a data structure which can easily handle querying the<br>
> data. So for example, if I want to query data from 3 weeks ago till today,<br>
> i can do it rather quickly.<br>
><br>
> each YearMonthDayHourMinute.gz file look like this and they are about 4to<br>
> 6kb<br>
> red 34<br>
> green 44<br>
> blue 88<br>
> orange 4<br>
> black 3<br>
> while 153<br>
><br>
> I would like to query them so I can generate a plot rather quickly but not<br>
> sure what is the best way to do this.<br>
><br>
><br>
><br>
<br>
</div>What part of your code is giving you difficulty?  You didn't post any<br>
code.  You don't specify the OS, nor version of your Python, nor what<br>
other programs you expect to use along with Python.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
<br>
DaveA<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--- <span>Get your facts first, then you can distort them as you please.</span>--<br>
</div>