qsv to ods/xlsx makes strings out of numbers #2693
-
|
I am extracting exchanges rates from a CSV provided by the EU Central Bank daily via the extracted file of today Date, USD, JPY, BGN, CZK, DKK, GBP, HUF, PLN, RON, SEK, CHF, ISK, NOK, TRY, AUD, BRL, CAD, CNY, HKD, IDR, ILS, INR, KRW, MXN, MYR, NZD, PHP, SGD, THB, ZAR,
14 April 2025, 1.1377, 162.97, 1.9558, 25.108, 7.4675, 0.86383, 410.45, 4.2860, 4.9775, 11.0065, 0.9329, 144.90, 12.0205, 43.2931, 1.8034, 6.6488, 1.5786, 8.3196, 8.8221, 19125.14, 4.1910, 97.8348, 1617.29, 22.9720, 5.0229, 1.9430, 64.868, 1.4971, 38.176, 21.5332,
same if I export to xlsx or sqlite, didn't try the others. I expected those fields to be numerical.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
If I'm not mistaken, ODS is schema-less and that may be why they are saved as strings. One can run Another workaround is to use the "smart" cc @kindly as he maintains the csvs_convert crate which powers the |
Beta Was this translation helpful? Give feedback.
-
|
@ondohotola as the file contains spaces after the You probably want to run |
Beta Was this translation helpful? Give feedback.
-
|
Indeed, thank you so much, I used
to strip however :-0-O |
Beta Was this translation helpful? Give feedback.
Indeed, thank you so much, I used
qsv input --trim-fields --trim-headers eurofxref.csvto strip however :-0-O