Usage of formatstr from the DYNFMT and CALCCONV "apply" subcomands #1126
-
Hi, I've downloaded the My very basic CSV file:
The commands tried with their output: qsv apply dynfmt --formatstr '{FOO} €' -c 'Total Price' "${file}"
and qsv apply calcconv --formatstr '{col1} + 10' --new-column BAR "${file}"
The expected/desired outputs for the second column would be |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
did you look at
qsv apply operations numtocurrency
Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @langbein-daniel , This sanitization process also happens to fold column names to lowercase. If you convert your example to use the "safe", sanitized column name in the
you will get the expected result:
As for the |
Beta Was this translation helpful? Give feedback.
-
For consistency and more intuitive behavior, I just made apply As for the calcconv example, that's because you should have set formatstr to |
Beta Was this translation helpful? Give feedback.
For consistency and more intuitive behavior, I just made apply
DYNFMT
case sensitive.#1130
As for the calcconv example, that's because you should have set formatstr to
{FOO} + 10
, not{col1} + 10
.