Unix code check and REMOVE the datapoints ranging outside 9:00am and 4:15pm for a second by second dataset
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
I have a list of about 70 million rows. I want to delete the the following and clean the dataset-
- Any values which are 0 or in the range of 0.001 or less.
- Any values that lie outside the range of 9:00am and 4:15pm
- If multiple quotes are present with the same time stamp, then replace that with a single entry of the median price.
I am able ot achive the third point, but not the second and the first one. Can someone guide me with this? Thanks
4 comentarios
Harsh Rob
el 20 de Ag. de 2019
Jan
el 20 de Ag. de 2019
You did not mention, how the data are represented. While the number of 70 million does not matter (of course the solution will work for 173 rows also), it is required to know, what exactly "rows" and "a list" are.
What does "clean the dataset" mean for "Any values which are 0 or in the range of 0.001 or less"? A "range" needs two values to be defined, and 0 is "less than 0.001" already, so why mentioning it explicitely? How is the time represented? As datenumber or string?
You explain the meaning of the first 3 rows. Then you mention, that only the 1st 2 columns matter.
What does "Unix code check" mean? This is a MATLAB forum and it should not matter, if the data are coming from a Unix machine.
Harsh Rob
el 20 de Ag. de 2019
Jan
el 21 de Ag. de 2019
@Harsh Rob: I cannot know what "RAW dataset" means. Is it a binary oder text file? Have you been able to import it already? Converting the time to a datevec or datetime object allow to create a matching filter easily.
It is still not clear, how your data are represented. A "timestamp in unix format" could be a UINT64, or s string containing the digits of the UINT64, or something else.
Please post a small example of the inputs.
Respuestas (0)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!