Borrar filtros
Borrar filtros

Read a datastore by logical groups

1 visualización (últimos 30 días)
Stepp Gyogi
Stepp Gyogi el 19 de Ag. de 2020
Comentada: Mohammad Sami el 3 de Sept. de 2020
Currently, I have been able to load a tabularTextDatastore which contains about 4 year's worth of daily data for a bunch of uniquely identified products. These products have unique keys, and the export I did from the database sorts the data by key, date. Therefore, the first (say) 1000 lines will be for product 1, the next (say) 800 for product 2, etc. As you notice in my example, products don't necessarily all have data for all days, therefore I cannot read this datastore by constant chunks of N rows (which I have found in the documentation is possible).
Question: is there an easy or better way to read the data by chunks which correspond to the key which is one of the variables in the datastore?
PS: my DIY way around this would be to read by N rows, such that N is greater than the number of days for any product, and then only select the lines corresponding to a given product. This is awkward at best as it requires bookkeeping where your pointer to the last relevant row is, so I'm hoping this is not the answer.

Respuestas (0)

Categorías

Más información sobre Big Data Processing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by