Hello,
I am currently storing about 40GB of data in a 4 column tall array with about 1B rows. I'm using a Matlab Tall Array Datastore, but I also plan on experimenting with KDB+.
Could someone comment on the best way to extract a wide table, with about 350,000 rows and about 20 columns by selecting some of the items in the first three columns and the corresponding values,e.g DATE = {29-Jul-1983:31-Aug-1983} & STOCK = AAPL US EQUITY & FIELD= {MOV_AVG_50D & PRICE}?
Thank You,
Michael
Input
DATE,STOCK,FIELD,VALUE29-Jul-1983 00:00:00,BHP AT EQUITY,MOV_AVG_50D,0.897931-Aug-1983 00:00:00,BHP AT EQUITY,PRICE,0.902929-Jul-1983 00:00:00,IBM US EQUITY,MOV_AVG_50D,0.910631-Aug-1983 00:00:00,IBM US EQUITY,PRICE_50D,0.915429-Jul-1983 00:00:00,AAPL US EQUITY,MOV_AVG_50D,0.922731-Aug-1983 00:00:00,AAPL US EQUITY,PRICE,0.9311
Output:
DATE,MOV_AVG_50D,PRICE29-Jul-1983 00:00:00,0.9227,NaN31-Aug-1983 00:00:00,NaN,0.9311
Best Answer