Skip to content

Releases

csvtk v0.39.0

Choose a tag to compare

@shenwei356 shenwei356 released this 05 Nov 05:37
  • csvtk v0.39.0 Github Releases (by Release)
    • csvtk:
      • improve performance.
      • prevent overwriting input and auxiliary files.
      • report file I/O and compression errors, even with -I/--ignore-illegal-row.
      • fix column range selection.
      • prevent integer overflow when expanding column ranges.
      • avoid repeating duplicate-named columns during exclusions and fuzzy selection.
      • accept literal column names containing regular-expression characters.
      • make --immediate-output a global flag and flush both CSV and file output buffers.
      • preserve explicit stdin input when using -X/--infile-list.
      • infer column counts from retained records when skipping empty or illegal rows, and skip empty rows with differing widths under -E.
    • csvtk add-header:
      • reject mismatched column counts in subsequent input files.
    • csvtk cat:
      • preserve final lines without a newline and fix progress reporting and parameter validation.
    • csvtk comb:
      • fix reading of multiline fields, long records, comments, and many input files.
      • reduce memory usage when generating combinations.
    • csvtk comma:
      • preserve numeric precision and scientific notation.
    • csvtk concat:
      • report ambiguous column names.
    • csvtk corr:
      • reject multiple input files instead of silently ignoring extra files.
    • csvtk csv2json:
      • fix JSON escaping, numeric formatting, and trailing commas with -K/--skip-key.
      • require exactly one resolved key column.
    • csvtk csv2md:
      • escape literal pipes and render cell line breaks without breaking the table.
    • csvtk csv2rst:
      • preserve multiline cells and align borders with Unicode padding.
    • csvtk csv2xlsx:
      • fix data loss in wide tables.
      • generate distinct, valid sheet names for input files with conflicting names.
    • csvtk cut:
      • fix a panic when combining -H, -m, and excluded columns.
    • csvtk filter:
      • fix --any when selected fields contain non-numeric values.
    • csvtk filter2/mutate2/mutate3:
      • fix numeric precision and string handling, and allow mixing $x and ${x} references.
    • csvtk fix:
      • honor --na when padding rows with -n/--buf-rows.
    • csvtk fix-quotes:
      • preserve valid escaped quotes and support regular-expression characters as delimiters.
    • csvtk fix-quotes/space2tab:
      • reject invalid and overflowing buffer sizes before opening output files.
    • csvtk fold:
      • honor --ignore-case, retaining the first spelling of each key.
    • csvtk head/ncol/headers/space2tab/dim:
      • fix failures when processing many input files (with --cols for dim).
    • csvtk inter:
      • fix intersections with empty inputs.
    • csvtk join:
      • fix joins with header-only inputs.
      • fix misplaced keys and missing values in outer joins with reordered key fields.
      • retain generated column names after an empty intermediate join and reject repeated key columns.
    • csvtk long2matrix/matrix2long:
      • validate value bounds and treat NaN as non-numeric when filtering.
    • csvtk mutate:
      • fix column insertion with --remove and validate capturing groups.
    • csvtk plot:
      • reject invalid field selections, non-finite dimensions, and invalid axis limits.
      • accept uppercase output format names.
    • csvtk plot bar:
      • fix grouped bar alignment and reject duplicate categories within a group.
      • honor X-axis limits and report unsupported logarithmic scales.
    • csvtk plot box/line:
      • pad large constant values without losing precision.
    • csvtk plot box/line/hist:
      • validate logarithmic domains and handle constant positive ranges before opening output files.
      • reject non-finite axis ranges before rendering.
    • csvtk plot hist:
      • fix the MEAN label with --percentiles.
      • support logarithmic counts with empty bins, reject non-finite values, and report empty samples before computing percentiles.
      • reject unrepresentable bin widths and ranges before rendering.
    • csvtk plot line:
      • fix categorical axis ticks for single categories and custom axis limits.
    • csvtk pretty:
      • fix named alignment with row numbers and reject out-of-range alignment fields.
      • validate alignment range bounds before expanding them.
    • csvtk replace:
      • fix group ranges and fuzzy selectors modifying unintended columns.
    • csvtk replace/fold/spread:
      • resolve field exclusions independently for each selector.
    • csvtk replace/rename2:
      • preserve literal dollar signs in key-value replacements.
    • csvtk round:
      • fix rounding of integers, decimals, and scientific notation.
    • csvtk sample:
      • reject NaN sampling proportions.
    • csvtk sep:
      • honor case-insensitive literal separators and keep output names and widths consistent when a named field overrides -H.
    • csvtk sep/mutate/watch:
      • require exactly one selected field, including after range and exclusion expansion.
    • csvtk sort:
      • fix default sorting of single-column input and open ranges selecting only the last column.
      • correctly sort by numeric-looking column names and negative open ranges.
    • csvtk split:
      • reject unsafe output directories before deleting files, even with --force.
      • honor --buf-rows 1 and fix appending output when reading from stdin.
      • limit open files and memory when splitting by chunk count.
    • csvtk split/csv2xlsx/splitxlsx:
      • reject generated output filenames that overwrite input files.
    • csvtk splitxlsx:
      • fix panics on short or blank rows.
      • fix open field ranges and fuzzy field matching.
      • honor -o/--out-file when listing sheets and keep the workbook open until processing finishes.
    • csvtk summary:
      • fix field ranges with the default count operation and honor --rand-seed.
      • resolve data and group selectors independently, including exclusions, and reject overlapping columns.
      • reject overflowing field numbers.
      • avoid overflow when computing medians and quartiles of finite values.
    • csvtk summary/spread/sep/rename/rename2/csv2rst/corr/watch/pretty/fix/del-quotes/split/splitxlsx/space2tab/fix-quotes/transpose:
      • honor -U/--delete-header.
    • csvtk watch:
      • prevent image output from overwriting inputs or tabular output.
      • reject invalid report frequencies and handle inputs without finite numeric values.
      • preserve non-numeric and non-finite records with --pass.
    • csvtk xlsx2csv:
      • honor -o/--out-file when listing sheets.

csvtk v0.38.0

Choose a tag to compare

@shenwei356 shenwei356 released this 24 Sep 07:21

Changes

  • csvtk v0.38.0 Github Releases (by Release)
    • csvtk:
      • correct help text, documentation examples, and spelling.
      • added a new flag --quote-all to quote all output fields, even when not necessary. #297
    • new commands:
      • csvtk csv2html: convert CSV/TSV to a standalone responsive HTML table. #132
      • csvtk long2matrix: convert the long format to a matrix. #91
      • csvtk matrix2long: convert a matrix to the long format.
      • csvtk paste: paste CSV/TSV files by columns. #139
    • csvtk filter/filter2/mutate2/mutate3/sort/summary/round:
      • fix wrongly converting . to the number zero. #359
    • csvtk cut:
      • support -Z/--show-row-number. #360
      • if there's only one input file, it will be directly outputted.
    • csvtk corr:
      • write correlations to stdout or -o by default; with --pass, keep forwarding input to output and writing correlations to stderr. #370
    • csvtk sort:
      • support sorting by Unicode text length with -k field:l and reverse order with -k field:lr. #357
    • csvtk concat:
      • add --original-file to append each row's input filename. #369
    • csvtk unfold:
      • support unfolding multiple fields in parallel. #363
    • csvtk fold:
      • support folding multiple value fields in parallel. #320 #363
    • csvtk mutate2:
      • fix the function len for Unicode strings. #368
    • csvtk join/freq/inter/uniq/summary/fold/spread/replace:
      • fix rare collisions between multi-column keys, when a field contains _shenwei356_.
    • csvtk join:
      • fix -n for empty fields in multi-column keys and retain unmatched rows in left and outer joins.
      • retain columns from header-only input files in outer joins. #266
    • csvtk uniq:
      • add -d/--repeated to print one record per repeated key and -u/--unique to print records whose keys occur exactly once. #133
      • use --delimiter instead of -d to set the input delimiter for this command.
    • csvtk freq:
      • make -i ignore case.
    • csvtk summary:
      • add -n/--names to rename summary columns. #273
      • preserve input row positions for argmin and argmax when used with quantiles.
    • csvtk split:
      • add -n/--nlines to split input into chunks containing up to N records, and -c/--nchunks to distribute records among N chunks in a round-robin manner. An input header row is repeated in every chunk. #122
      • encode key values in output filenames to prevent collisions and invalid paths.
    • csvtk splitxlsx:
      • generate distinct, valid sheet names for keys that produce the same name.

Notes

  • please open an issue to request binaries for other platforms.
  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update shell autocompletion script !!!

csvtk v0.37.0

Choose a tag to compare

@shenwei356 shenwei356 released this 08 Apr 08:25
cc94b40

Changes

  • csvtk v0.37.0 Github Releases (by Release)
    • csvtk:
      • add support of reading and writing LZ4 compression format. #353
    • csvtk cut:
      • allow setting -f/--fields multiple times, useful for selecting a long column list.
    • csvtk csv2jon:
      • fix -b/--blanks and -n/--parse-num. #352
      • add a new flag -K/--skip-key to skip putting KEY in the data when using -k KEY. #351
    • csvtk pretty:
      • add a new style regular.
      • adjust styles 3line and round.

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.36.0

Choose a tag to compare

@shenwei356 shenwei356 released this 19 Nov 09:17

Changelog

  • csvtk v0.36.0 Github Releases (by Release)
    • new command csvtk shuf: shuffle rows. #151
    • csvtk plot line/hist/bar/box
      • forgot to scale the font size of legend keys.
    • csvtk pretty
      • fix formatting unicode text.

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.35.0

Choose a tag to compare

@shenwei356 shenwei356 released this 16 Oct 09:39

Changes

  • csvtk v0.35.0 Github Releases (by Release)
    • csvtk:
      • do not support i386 architecture anymore.
    • csvtk sort:
      • sort on all columns by default, with a similar way with GNU sort (but the results might be different). #337
      • support field ranges, e.g., -k 1-3:N.
      • fix sort inconsistency for rows with the same key(s). #337
    • csvtk mutate2/filter2:
      • use a new fork of expression evaluation package. #172
    • csvtk filter2:
      • fix the panic when using -Z. #332
    • csvtk plot bar:
    • csvtk summary:
      • support field range, e.g., -f 2-5:sum #143

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.34.0

Choose a tag to compare

@shenwei356 shenwei356 released this 31 May 03:21

Changes

  • csvtk v0.34.0 Github Releases (by Release)
    • new command csvtk plot bar. Contributed by @lovromazgon #323
    • csvtk:
      • fix panic when the first field is empty, e.g., -f ,2,3.
    • csvtk cut:
    • csvtk plot box:
      • fix --horiz does not swap axes labels. #314
    • csvtk plot line:
      • add a new flag --data-field-x-nominal to plot line with sortable nominal X axis values, such as date.
        #308 by @lovromazgon
    • csvtk plot:
      • add two new flags --hide-x-labs and --hide-y-labs, for hiding X/Y axis, ticks, and tick labels. #326
    • csvtk fix:
      • add a new flag --na to set content to fill. #316
    • csvtk replace:
      • add new replacements symbol/placeholder for group-specific numbering: {gnr}, {enr}, {rnr}. #322
    • csvtk sort:
      • add support for sorting by date/time. #278

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.33.0

Choose a tag to compare

@shenwei356 shenwei356 released this 12 Mar 09:25

Changes

  • csvtk v0.33.0 Github Releases (by Release)
    • new command csvtk comma: make numbers more readable by adding commas. #300
    • csvtk:
      • add a global flag -V/--version. #304
    • csvtk plot box/hist/line:
      • adds --x-scale-ln and --y-scale-ln for natural log scaling of the X & Y axes. #302#302) by @xxxserxxx
    • csvtk fold:
    • csvtk summary:
      • numbers in scientific notation are output as is.

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.32.0

Choose a tag to compare

@shenwei356 shenwei356 released this 05 Dec 12:54

Changes

  • csvtk v0.32.0 Github Releases (by Release)
    • csvtk filter2/mutate2/mutate3:
      • fix a bug of mismatch between column names and values which was brought in v0.31.1. #295
      • add some unit tests.
    • csvtk pretty:
      • -w/--min-width and -W/--max-width accept multiple values for setting column-specific thresholds.
      • add a new format style round for round corners.

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.31.1

Choose a tag to compare

@shenwei356 shenwei356 released this 22 Nov 08:41

Changes

  • csvtk v0.31.1 Github Releases (by Release)
    • csvtk filter2/mutate2/mutate3:
      • fix the slow speed, I was stupid before. #269
    • csvtk csv2json:
      • further fix values with double quotes and new line symbols. #291

Notes

  • run csvtk version to check update !!!
  • run csvtk genautocomplete to update Bash completion !!!

csvtk v0.31.0

Choose a tag to compare

@shenwei356 shenwei356 released this 01 Nov 11:12

Changes

  • csvtk v0.31.0 Github Releases (by Release)
    • csvtk sort/join:
      • faster speed and lower memory.
    • csvtk sort:
      • do not panic for empty input. #287
    • csvtk summary:
      • fix the order of columns. #282
    • csvtk rename2:
      • fix -n/--start-num. #286
      • add flag --nr-width.
    • csvtk replace:
      • fix implementing {nr}. #286
    • csvtk csv2json:
      • fix values with double quotes and new line symbols.
    • csvtk split:
      • support customize output file prefix and subdirectory from prefix of keys. #288
    • csvtk spread:
      • add a new alias "scatter" to "spread". #265
    • csvtk grep:
      • do not show progress.
    • csvtk fix-quotes:
      • new flag -b, --buffer-size.
    • csvtk plot:
      • new flag --scale for scaling the image width/height, tick, axes, line/point and font sizes proportionally, adviced by @tseemann.
    • csvtk plot line:
      • only add legend for more than one group. #279
      • sort points by X for plotting lines. #280
    • csvtk hist:
      • new flags: --line-width.
    • csvtk box:
      • plots of different groups have different colors now.
      • new flags: --line-width, --point-size, and color-index.