I want to convert table A into table B. How can I do in Python and R. Are there any specific libraries?
Kindly check the attached image
I want to convert table A into table B. How can I do in Python and R. Are there any specific libraries?
Kindly check the attached image
In r
, you can use pivot_longer
function from tidyr
package:
library(tidyr)
TABLE_B <- pivot_longer(TABLE_A, everything(), names_to = "ITEM Names", values_to = "ALL")