Wide and Long Table Shapes

A wide shape can keep measurements in separate columns. A long shape can put each selected measurement in a row with a label identifying its kind or time.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a monthly example
  2. Verify reversibility

Trace a monthly example

A row for one store with fields January and February can be reshaped into two rows containing store, month, and sales. Row granularity changes from one store to one store-month.

Verify reversibility

If a store can have several sales entries in one month, returning to one wide value requires an aggregation rule or a more specific ID. See grouped records.[1][2]

References

  1. Hadley Wickham, Tidy Data ↩
  2. Matplotlib Development Team, Plot Types ↩