Help with dates

A

Angelo Secchi

Hi,
I have a dictionary, data, with the following structure:

[['18-07-1994', '283.000000', '292.500000', '27712168.000000']
['19-07-1994', '292.000000', '294.500000', '2492106.000000']
['20-07-1994', '294.000000', '294.500000', '4881451.000000']
['21-07-1994', '292.000000', '291.000000', '2183402.000000']
['22-07-1994', '293.000000', '291.000000', '889050.000000']
['25-07-1994', '293.000000', '292.000000', '657931.000000']]

and I would like to create a "sort" of daily increments of, for example,
the second column (ex. 292-283). I say "sort" since I do not need to
consider week ends (i.e. I can consider them as one day) but I would
also like to check if, in my database, there are big time jumps and
possibly discard corresponding increments. Where should I look for
hints in how to solve this task?

Thanks a lot,

angelo



--
========================================================
Angelo Secchi PGP Key ID:EA280337
========================================================
Current Position:
Graduate Fellow Scuola Superiore S.Anna
Piazza Martiri della Liberta' 33, Pisa, 56127 Italy
ph.: +39 050 883365
email: (e-mail address removed) www.sssup.it/~secchi/
========================================================
 
W

wes weston

Angelo said:
Hi,
I have a dictionary, data, with the following structure:



[['18-07-1994', '283.000000', '292.500000', '27712168.000000']
['19-07-1994', '292.000000', '294.500000', '2492106.000000']
['20-07-1994', '294.000000', '294.500000', '4881451.000000']
['21-07-1994', '292.000000', '291.000000', '2183402.000000']
['22-07-1994', '293.000000', '291.000000', '889050.000000']
['25-07-1994', '293.000000', '292.000000', '657931.000000']]

and I would like to create a "sort" of daily increments of, for example,
the second column (ex. 292-283). I say "sort" since I do not need to
consider week ends (i.e. I can consider them as one day) but I would
also like to check if, in my database, there are big time jumps and
possibly discard corresponding increments. Where should I look for
hints in how to solve this task?

Thanks a lot,

angelo



--
========================================================
Angelo Secchi PGP Key ID:EA280337
========================================================
Current Position:
Graduate Fellow Scuola Superiore S.Anna
Piazza Martiri della Liberta' 33, Pisa, 56127 Italy
ph.: +39 050 883365
email: (e-mail address removed) www.sssup.it/~secchi/
========================================================

angelo,
Do you want to sort within one key's list/value? Would it be
better to have a key like ('III','18-07-1994') with
a value ('283.000000', '292.500000', '27712168.000000')? 'not sure
I understand what you're doing.
wes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top