Repository navigation
Releases
Releases · shenwei356/csvtk
csvtk v0.39.0
- csvtk v0.39.0
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-outputa 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.
- fix JSON escaping, numeric formatting, and trailing commas with
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.
- fix a panic when combining
csvtk filter:- fix
--anywhen selected fields contain non-numeric values.
- fix
csvtk filter2/mutate2/mutate3:- fix numeric precision and string handling, and allow mixing
$xand${x}references.
- fix numeric precision and string handling, and allow mixing
csvtk fix:- honor
--nawhen padding rows with-n/--buf-rows.
- honor
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.
- honor
csvtk head/ncol/headers/space2tab/dim:- fix failures when processing many input files (with
--colsfordim).
- fix failures when processing many input files (with
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
--removeand validate capturing groups.
- fix column insertion with
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
MEANlabel 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.
- fix the
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.
- honor case-insensitive literal separators and keep output names and widths consistent when a named field overrides
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 1and fix appending output when reading from stdin. - limit open files and memory when splitting by chunk count.
- reject unsafe output directories before deleting files, even with
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-filewhen 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.
- fix field ranges with the default count operation and honor
csvtk summary/spread/sep/rename/rename2/csv2rst/corr/watch/pretty/fix/del-quotes/split/splitxlsx/space2tab/fix-quotes/transpose:- honor
-U/--delete-header.
- honor
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-filewhen listing sheets.
- honor
csvtk v0.38.0
Changes
- csvtk v0.38.0
csvtk:- correct help text, documentation examples, and spelling.
- added a new flag
--quote-allto quote all output fields, even when not necessary. #297
- new commands:
csvtk filter/filter2/mutate2/mutate3/sort/summary/round:- fix wrongly converting
.to the number zero. #359
- fix wrongly converting
csvtk cut:- support
-Z/--show-row-number. #360 - if there's only one input file, it will be directly outputted.
- support
csvtk corr:- write correlations to stdout or
-oby default; with--pass, keep forwarding input to output and writing correlations to stderr. #370
- write correlations to stdout or
csvtk sort:- support sorting by Unicode text length with
-k field:land reverse order with-k field:lr. #357
- support sorting by Unicode text length with
csvtk concat:- add
--original-fileto append each row's input filename. #369
- add
csvtk unfold:- support unfolding multiple fields in parallel. #363
csvtk fold:csvtk mutate2:- fix the function
lenfor Unicode strings. #368
- fix the function
csvtk join/freq/inter/uniq/summary/fold/spread/replace:- fix rare collisions between multi-column keys, when a field contains
_shenwei356_.
- fix rare collisions between multi-column keys, when a field contains
csvtk join:- fix
-nfor 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
- fix
csvtk uniq:- add
-d/--repeatedto print one record per repeated key and-u/--uniqueto print records whose keys occur exactly once. #133 - use
--delimiterinstead of-dto set the input delimiter for this command.
- add
csvtk freq:- make
-iignore case.
- make
csvtk summary:- add
-n/--namesto rename summary columns. #273 - preserve input row positions for
argminandargmaxwhen used with quantiles.
- add
csvtk split:- add
-n/--nlinesto split input into chunks containing up to N records, and-c/--nchunksto 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.
- add
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 versionto check update !!! - run
csvtk genautocompleteto update shell autocompletion script !!!
csvtk v0.37.0
Changes
- csvtk v0.37.0
csvtk:- add support of reading and writing LZ4 compression format. #353
csvtk cut:- allow setting
-f/--fieldsmultiple times, useful for selecting a long column list.
- allow setting
csvtk csv2jon:csvtk pretty:- add a new style
regular. - adjust styles
3lineandround.
- add a new style
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.36.0
Changelog
- csvtk v0.36.0
- 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.
- new command
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.35.0
Changes
- csvtk v0.35.0
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.34.0
Changes
- csvtk v0.34.0
- new command
csvtk plot bar. Contributed by @lovromazgon #323 csvtk:- fix panic when the first field is empty, e.g.,
-f ,2,3.
- fix panic when the first field is empty, e.g.,
csvtk cut:csvtk plot box:- fix
--horizdoes not swap axes labels. #314
- fix
csvtk plot line:- add a new flag
--data-field-x-nominalto plot line with sortable nominal X axis values, such as date.
#308 by @lovromazgon
- add a new flag
csvtk plot:- add two new flags
--hide-x-labsand--hide-y-labs, for hiding X/Y axis, ticks, and tick labels. #326
- add two new flags
csvtk fix:- add a new flag
--nato set content to fill. #316
- add a new flag
csvtk replace:- add new replacements symbol/placeholder for group-specific numbering:
{gnr},{enr},{rnr}. #322
- add new replacements symbol/placeholder for group-specific numbering:
csvtk sort:- add support for sorting by date/time. #278
- new command
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.33.0
Changes
- csvtk v0.33.0
- new command
csvtk comma: make numbers more readable by adding commas. #300 csvtk:- add a global flag
-V/--version. #304
- add a global flag
csvtk plot box/hist/line:- adds
--x-scale-lnand--y-scale-lnfor natural log scaling of the X & Y axes. #302#302) by @xxxserxxx
- adds
csvtk fold:csvtk summary:- numbers in scientific notation are output as is.
- new command
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.32.0
Changes
- csvtk v0.32.0
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-widthand-W/--max-widthaccept multiple values for setting column-specific thresholds.- add a new format style
roundfor round corners.
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.31.1
Changes
Notes
- run
csvtk versionto check update !!! - run
csvtk genautocompleteto update Bash completion !!!
csvtk v0.31.0
Changes
- csvtk v0.31.0
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.
- fix
csvtk replace:- fix implementing
{nr}. #286
- fix implementing
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.
- new flag
csvtk plot:- new flag
--scalefor scaling the image width/height, tick, axes, line/point and font sizes proportionally, adviced by @tseemann.
- new flag
csvtk plot line:csvtk hist:- new flags:
--line-width.
- new flags:
csvtk box:- plots of different groups have different colors now.
- new flags:
--line-width,--point-size, andcolor-index.