timestamp price contracts
20210104 10:08:34:950 29.16 8748
20210104 10:08:38:067 29.16 8748
20210104 10:08:38:067 29.17 14585
20210104 10:08:38:067 29.17 5834
20210104 10:08:46:263 29.17 2917
20210104 10:09:02:783 29.15 58300
20210104 10:09:03:813 29.15 8745
20210104 10:09:16:277 29.17 2917
20210104 10:09:16:277 29.17 5834
20210104 10:09:16:277 29.17 2917
20210104 10:09:16:607 29.18 8754
20210104 10:09:19:010 29.18 5836
Dears, i have a file with high frequency data, with the layout above with 8mm+ observations.
Timestamp is a string field in the format YYYYMMDD HHMMSSmmm, while price and contracts are float.
I would like to set a mask for timestamp and then collapse price and contracts by means, every change of minute.
I appreciate some help with the code.
Thanks
Eli Hadad Junior
20210104 10:08:34:950 29.16 8748
20210104 10:08:38:067 29.16 8748
20210104 10:08:38:067 29.17 14585
20210104 10:08:38:067 29.17 5834
20210104 10:08:46:263 29.17 2917
20210104 10:09:02:783 29.15 58300
20210104 10:09:03:813 29.15 8745
20210104 10:09:16:277 29.17 2917
20210104 10:09:16:277 29.17 5834
20210104 10:09:16:277 29.17 2917
20210104 10:09:16:607 29.18 8754
20210104 10:09:19:010 29.18 5836
Dears, i have a file with high frequency data, with the layout above with 8mm+ observations.
Timestamp is a string field in the format YYYYMMDD HHMMSSmmm, while price and contracts are float.
I would like to set a mask for timestamp and then collapse price and contracts by means, every change of minute.
I appreciate some help with the code.
Thanks
Eli Hadad Junior

Comment