i have a common usecase: really common. I have a...
# datascience
j
i have a common usecase: really common. I have a table from csv: Date, Customer, ItemId, qty_sold, qty_returned what is the kmath recipe to pivot distinct ItemId to new columns Date, Customer, qty_sold_ItemId1 ,qty_returned_ItemId1, qty_sold_ItemIdN, qty_returned_ItemIdN,...
a
Kmath currently does not have tools to work with tables. and raws, only with nd arrays. I do not think that raw-based and column based operations should be done via fixed nd arrays. We will implement table operations as a dataforge module. I had it working in the prototype, but is not migrated to new one yet. This is the tracking issue: https://github.com/mipt-npm/dataforge-core/issues/19. I can prioritize it. For now you can try https://github.com/holgerbrandl/krangl
j
im not sure what fixed nd array refers to
a
ND-array is represented by continuous memory block of values of the same type. It is used for operations on the whole array. The table is usually either column-based or row-based collection which allows easy row/column manipulation and in which different columns could be of different types. It has completely different inner structure and API.