Randomly appearing input value results duplicated headers in output file (force blank column output) #566
-
Hello, I was unable to find anything similar with key search so please help. Because my source data has a parameter not always present after the pivot creation despite my efforts I don't have a fixed structure. Can I somehow enforce to keep the structure and place substitute character where Ledger value is missing? Command: Input data (notice that ledger appears only at some lines the rest are fixed): Output result: Company,Process,Encoding,Ledger Company,Process,Encoding Company,Process,Encoding,Ledger Expected Output result: Many thanks: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@shungabubus it should be this one
You don't have to use |
Beta Was this translation helpful? Give feedback.
@shungabubus it should be this one
You don't have to use
-i
because you must do long to wide reshape. Then you must useunsparsify
to normalize field names absent in a given record but present in others.